List of utility methods to do Array Remove Min
var a = [2,12,34,4]; Array.prototype.removeMin = function(){ var min1 = Math.min.apply(null,this); var pos = this.indexOf(min1); return this.splice(pos,1); a.removeMin();