Javascript Array hasKey()

Description

Javascript Array hasKey()


Array.prototype.hasKey = function(){ 
  for(i in this){ 
    if(i === arguments[0]) 
      return true; 
  }; /*  www . j a  va2  s  .com*/
  return false; 
};



PreviousNext

Related