Node.js examples for Array:Array Value
Applies function to all pairs containing given index in array
/* Applies function to all pairs containing given index */ Array.prototype.eachOther = function(i, func){ for(var j=0; j < this.length; j++){ if(j!=i) func.call(this, j); }/* w w w. j a v a 2 s. com*/ }