Javascript Array myPush(item)

Description

Javascript Array myPush(item)


'use strict';// w ww .j  av  a2  s  .c o  m

Array.prototype.myPush = function(item){
  this[this.length] = item;
  return this.length; 
}



PreviousNext

Related