What is JavaScript Function Currying?

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Currying is a core concept of functional programming and a useful tool for any developer's toolbelt. In this lesson, John walks through the definition of currying and its practical usage.

David
David
~ 5 years ago

Great video!

Trying to wrap my brain around other practical applications for using curry in my day to day.

Any suggestions of other typical scenarios where currying might come in handy?

Thanks

John Lindquist
John Lindquistinstructor
~ 5 years ago

Fully answering your question is beyond the scope a of single comment, but currying is a core concept of functional programming. Writing in a functional-style is applicable to everything in your day-to-day. Instead of writing monolithic functions that don't return anything, imagine writing your application in a bunch of tiny functions each returning a something that you can use to compose together more complex functions.

It's a complete change in the way of thinking about writing code, so don't worry if it doesn't click right away.

Watch this, I think it will give you a better idea: https://egghead.io/lessons/javascript-advanced-reduce-composing-functions-with-reduce