Yiling's Blog

(This site is very broken right now due to
an ill-planned domain migration. Another
version of this site built using Next.js will
be brought online later.)

Currying (in JS). My mind is blown…

I was preparing for a coding question for an interview and came across the below explanation about how to turn any function into a curried function in JavaScript, and it is absolutely mind blowing…

Deeply Understand Currying in 7 Minutes (freecodecamp.org)