JavaScriptAdvanced#functions

What is currying?

Transforming a multi-argument function into a chain of single-argument functions, which enables partial application and reusable specialised helpers.

Example
const mul = a => b => a * b;
const double = mul(2);
double(5); // 10

Related Questions

1
JavaScriptIntermediate#functions

What is a higher-order function?

Open
2
JavaScriptAdvanced#performance#functions

What is memoization?

Open
3
JavaScriptBeginner#browser#storage

What are localStorage, sessionStorage and cookies?

Open