Returns the maximum value of the array - Node.js Array

Node.js examples for Array:Array Value

Description

Returns the maximum value of the array

Demo Code


Array.prototype.max = function() {
  return Math.max.apply(Math, this);
};

Related Tutorials