Currying is a transformation of functions that translates a function from callable a f(a, b, c) into callable a f( a )( b )( c ).

--

--

It is used because not all browsers support the latest ECMAScript version, therefore we need to trans-pile the code from the ES version used in the code to a version supported by the Browser/Environment, for this we use BABEL.

Here is an example code of how Babel trans-piles ES6 to ES5.

Babel trans-pile example

--

--