Skip to content

Instantly share code, notes, and snippets.

@tyv
Created August 10, 2015 11:27
Show Gist options
  • Save tyv/825f9909e736e43bc371 to your computer and use it in GitHub Desktop.
Save tyv/825f9909e736e43bc371 to your computer and use it in GitHub Desktop.
Array.prototype.filter.toString()
"function findAll(iterator, context) {
var results = [];
this.each(function(value, index) {
if (iterator.call(context, value, index))
results.push(value);
});
return results;
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment