Javascript: Embrace Arrow Functions
Posted by Venkatt Guhesan on May 3, 2017
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
Advertisements
This entry was posted on May 3, 2017 at 3:23 pm and is filed under Javascript, ES6. Tagged: arrow functions, currying, Javascript, JS. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Leave a Reply