Here you can find the source of min()
//using apply//from www .j a v a 2s . c o m var min = Math.min.apply(null, arr), max = Math.max.apply(null, arr); Array.prototype.min = function() { return Math.min.apply(null, this); };
Array.prototype.min = function() { return Math.min.apply(null, this)
Array.prototype.min = function(){ return Math.min.apply({},this)
Array.prototype.min = function () { "use strict"; return Math.min.apply(null, this); };
Array.prototype.min = function() { return Math.min.apply(Math, this); };
function Calculator(array){ var self = this; (function(array){ self.min = array.min(); self.max = array.max(); self.avg = array.avg(); })(array); Array.prototype.min = function(){ ...
Array.prototype.min = function() { var r = null; for (var i = 0; i < this.length; i++) { if (r === null || this[i] < r) { r = this[i]; return r; }; ...