What is currying in JavaScript and how does it differ from partial application?

JavaScript Developer Hard

JavaScript Developer — Hard

What is currying in JavaScript and how does it differ from partial application?

Key points

  • Currying breaks down a function into a sequence of single-argument functions
  • Partial application fixes some arguments upfront, returning a new function for the remaining ones
  • Currying always takes one argument at a time, while partial application can fix multiple arguments simultaneously

Ready to go further?

Related questions