Skip to content

Instantly share code, notes, and snippets.

@victorvhpg
Created November 7, 2016 22:26
Show Gist options
  • Save victorvhpg/150720c5c4fbac3873afcfb155c6519d to your computer and use it in GitHub Desktop.
Save victorvhpg/150720c5c4fbac3873afcfb155c6519d to your computer and use it in GitHub Desktop.
arrow
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