Javascript: Embrace Arrow Functions

Focus On Content  ~/ click me to toggle the navigation bar to the right

<img src="/img/2017/05/es6icon1.png" alt=""> Great article on JavaScript currying and arrow functions.

Here is an example of a function in Javascript:


const secret = function (msg) {
    return function () {
        return msg;
    };
};

The same function as currying or arrow function:


const secret = msg => () => msg;

To learn more about the basics, visit the link below. Source: Familiarity Bias is Holding You Back: It’s Time to Embrace Arrow Functions