Applies function to all pairs containing given index in Float64Array - Node.js Array

Node.js examples for Array:Array Value

Description

Applies function to all pairs containing given index in Float64Array

Demo Code


/* Applies function to all pairs containing given index */
Float64Array.prototype.eachOther = function(i, func){
  for(var j=0; j < this.length; j++){
    if(j!=i) func.call(this, j);
  }/*w  ww  . ja  va  2  s .  com*/
}

Related Tutorials