Skip to content

Instantly share code, notes, and snippets.

@alexserver
Created March 18, 2014 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexserver/9612853 to your computer and use it in GitHub Desktop.
Save alexserver/9612853 to your computer and use it in GitHub Desktop.
functional programming blowmind
var everyDocument = function (collection, fn, a, b, c) {
return collection.forEach(function(element, index){
fn(element, index, a, b, c);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment