Skip to content

Instantly share code, notes, and snippets.

@sTiLL-iLL
Last active December 20, 2015 14:59
Show Gist options
  • Save sTiLL-iLL/6151398 to your computer and use it in GitHub Desktop.
Save sTiLL-iLL/6151398 to your computer and use it in GitHub Desktop.
some home-made "underscore" type constructs
// my for-each thing
function forEeach(array, action) {
try {
var len = array.length;
for (var i = 0; i < len; i++)
action(array[i]);
} catch (e) {
throw e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment