Here you can find the source of each(callback)
Array.prototype.each = function(callback){ for(var i = 0; i < this.length; i++){ callback(this[i]);/*from w w w. j av a 2s . c om*/ } }
Array.prototype.each = function(action) { var args = getArgs(1,arguments); var arr = this; for (var i = 0, l = arr.length; i < l; ++i) { action.apply(this,[arr[i],i].concat(args)); };
Array.prototype.each = function(action){ for(var i = 0; i< this.length; i++){ action(this[i], i); };
Array.prototype.each = function(action) { for (var i = 0, l = this.length; i < l; ++i) { action(this[i], i); };
Array.prototype.each = function (action) { this.map(function(el){action(el);}); return this; };
Array.prototype.each = function(block){ for(var i=0;i<this.length;i++) block(this[i])
Array.prototype.each = function(callback) { for (var i = 0;i < this.length;i++) { callback(this[i], i); };
Array.prototype.each = function(callback){ if(!callback) return; for(var i = 0; i < this.length; i++){ callback(this[i]);
Array.prototype.each = function(callback) for(var i = this.length; -- i >= 0 ;) if(false === callback(i,this[i])) return;
Array.prototype.each = function(callback){ var count = 0; for (var i = 0; i < this.length; i++){ var el = this[i]; callback.call(this,el,count); count++;