Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Last active August 29, 2015 14:00
Show Gist options
  • Save ryanflorence/11257077 to your computer and use it in GitHub Desktop.
Save ryanflorence/11257077 to your computer and use it in GitHub Desktop.
function(fn, thisArg) {
var newArray = [];
for (var i = 0, l = this.length; i < l; i++) {
newArray.push(fn.call(thisArg, this[i], i, this));
}
return newArray;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment