Applies function to every element in Float64Array - Node.js Data Type

Node.js examples for Data Type:Float64Array

Description

Applies function to every element in Float64Array

Demo Code


/* Applies function to every element */
Float64Array.prototype.each = function(func){
  for(var i=0; i < this.length; i++){
    func.call(this, i);/*from   ww  w .  j  a  v a2  s  . c  om*/
  }
}

Related Tutorials