Β© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Roadside Coder
App Development Tutorials
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...
Aman Chandel
Hey everyone I am a software Developer.... and I will post everything that I learn
amazingly explained Piyush..... Loved it.
Lovish Duggal
Full Stack Developer | Skilled in JavaScript Stack | Building Robust and Scalable Web Solutions
Thanks!!
Saurabh Sen
just a dev
// one liner :- const sum = a => b => b?sum(a+b):a;
Pravin Gunjal
I love coding
One Liner for Infinite currying of above sum function is as per below:
const sum = a => b => b ? sum(a + b) : a;
Vaibhav Dhiman
Infinite currying one liner
const mu = (num1) => (num2) => num2 ? mu(num1 + num2) : num1;
Hey Vaibhav!
Thanks for trying out. The question was to write one line solution for
const sum = function(a) { return function(b) { if (b) { return sum(a + b); } else { return a; } } }
Abhishek Dandriyal
Unlocking Brilliance
Awesome
Pujarini Jena
Software Developer
Thank you Abhishek π€
Aman Chandel
Hey everyone I am a software Developer.... and I will post everything that I learn
amazingly explained Piyush..... Loved it.