Skip to content

Instantly share code, notes, and snippets.

Avatar

Harold Thétiot hthetiot

View GitHub Profile
@WebReflection
WebReflection / each.js
Created Apr 3, 2012
all you need to `each(obj, cb [,context])`
View each.js
var each = function (Array) {"use strict";
/*! all you need to `each(obj, cb [,context])`
* @author WebReflection
* @license WTFPL - http://en.wikipedia.org/wiki/WTFPL
* @gist https://gist.github.com/2294934
*/
var
toString = {}.toString,
hasOwnProperty = {}.hasOwnProperty,
array = toString.call([]),
You can’t perform that action at this time.