Nodejs Utililty Methods Array Remove Min

List of utility methods to do Array Remove Min

Description

The list of methods to do Array Remove Min are organized into topic(s).

Method

removeMin()
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();