Javascript Array maximum()
maximum()
'use strict';/*from w ww. j a v a2 s . c o m*/ Array.prototype.maximum = function () { return this.reduce(function (max, aValue) { return Math.max(max, aValue); }, this[0]); };