function min (array) { return Math.min.apply(null, array); } alert( min([2,4,54,6,67,5,5,6,5,4,34,6, -1/*<---*/]) );