Currying
Emmanuel Ochade
Emmanuel Ochade
Software Engineer at Interswitch Group || Frontend Architect || TDD || Full Stack || Reactjs || React Native || Nextjs || Nodejs || Typescript || Web Security & Performance || Problem Solver || Fintech || E-Commerce
Its a common practice for javascript developers to pass all the arguments needed in a function at once. This can get bulky as the number of arguments increases. Partial application is a more advanced and elegant way to pass multiple arguments one at a time. The code above is just one way of writing partial applications and there is a special name for this kind of partial application. Its called "Currying"