ES6: arrow functions
Let’s keep on learning ES6 features, and after the first entrance on a few tips, today’s lesson is dedicated to arrow functions. The concept behind this functions are sintax reduce, they are anonimous functions, no bind with “this”, and always returning a value. They are defined with an arrow: () => { } The sintax is simple: and it can be equal to: As you can verify, the sentences are shorter, and easier to read, although the sintax depends on how paramaters the functions needs (in case it needs). By…read more