Javascript Array minimum()
minimum()
Array.prototype.minimum = function () { return this.reduce(function (min, aValue) { return Math.min(min, aValue); }, this[0]);/* w w w. j a v a2 s . c om*/ };