In this article I’ll quickly introduce you to currying, it’s purpose, and show you how to understand it with plain and simple code. — What is currying? Currying is the process of converting a function of multiple arguments to a chain of functions of one argument. Like so: const createUser = (firstName, lastName) =>
`${firstName} ${lastName}`
// becomes
const createUser = (firstName) => (lastName) =>
`${firstName} ${lastName}`