Javascript Array push(elem)

Description

Javascript Array push(elem)


Array.prototype.push = function(elem) {
  this[this.length] = elem;//  w w w .  ja  va 2s.  c om
  
  return ++this.length;
};



PreviousNext

Related