Nodejs Utililty Methods Array Get Unique

List of utility methods to do Array Get Unique

Description

The list of methods to do Array Get Unique are organized into topic(s).

Method

getUnique()
Array.prototype.getUnique = function(){
    var u = {}, a = [];
    for(var i = 0, l = this.length; i < l; ++i){
  if(this[i] in u)
            continue;
  a.push(this[i]);
  u[this[i]] = 1;
    return a;
...