PGOne Liner for Infinite currying of above sum function is as per below: const sum = a => b => b ? sum(a + b) : a;Comment·Article·Jul 8, 2022·Javascript Interview Questions ( Currying ) - Output based Questions, Partial Application and more