Tag Archives: ARROW FUNCTIONS
When (and why) you should use ES6 arrow functions — and when you shouldn’t
Arrow functions are undoubtedly one of the more popular features of ES6. They introduced a new way of writing concise functions. Here is a function how is written in ES5 syntax: Now, here is the same function expressed as an arrow function: It’s much shorter! We are able to omit the curly braces and the […]