If you have given frontend interviews you must have encountered this topic and if you have not then you will surely will get this topic in your upcoming interviews. Currying Contents What is Currying? Why should currying be used? How does curryi...

Markdown supported · ⌘↵ to post
One Liner for Infinite currying of above sum function is as per below:
const sum = a => b => b ? sum(a + b) : a;
Infinite currying one liner
const mu = (num1) => (num2) => num2 ? mu(num1 + num2) : num1;
Aman Chandel
Hey everyone I am a software Developer.... and I will post everything that I learn
amazingly explained Piyush..... Loved it.