Criado por James Drummond
aproximadamente 9 anos atrás
|
||
The syntax is like:[1, 2, 3].map(num => num * 2) // Which is equivalent to: [1, 2, 3].map(function (num) { return num * 2 }) // So this is just shorthand for writing a callback.Arrow functions are just for expressions:- They do not have this or arguments
Quer criar suas próprias Notas gratuitas com a GoConqr? Saiba mais.