Created
November 7, 2016 22:26
-
-
Save victorvhpg/150720c5c4fbac3873afcfb155c6519d to your computer and use it in GitHub Desktop.
arrow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = [1,2,3]; | |
list.map(item => item + "#"); | |
list.map( (item, indice) => item + "#" + indice); | |
//equivalente: | |
list.map(function(item){ | |
return item + "#"; | |
}); | |
list.map(function(item, indice){ | |
return item + "#" + indice; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment