Nodejs Array Contain Key containsKey(aName)

Here you can find the source of containsKey(aName)

Method Source Code

Array.prototype.containsKey = function(aName) {
    var i = this.length - 1;
    /*from w  ww.j a  va  2 s . c  o m*/
    while(i >= 0) {
        if(this[i].getKey() === aName)
            return true;
            
        i--;
    }
    
    return false;
};

Related

  1. containsKey(key)
    Array.prototype.containsKey = function(key) {
      return typeof this[key] !== 'undefined';