Javascript Array diff1(compare)

Description

Javascript Array diff1(compare)

Array.prototype.diff1 = function(compare) {
    return this.filter(function(elem) {return elem!=compare;})
}



PreviousNext

Related