Skip to content

Instantly share code, notes, and snippets.

@jtenner
Last active December 27, 2015 12:09
Show Gist options
  • Save jtenner/7323657 to your computer and use it in GitHub Desktop.
Save jtenner/7323657 to your computer and use it in GitHub Desktop.
var array = [1,2,3,4,5,6,7,8,9,0], target = [];
array.forEach(function(item){
//do something with each `item` here
target.push(item);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment