Javascript Array Push(value)

Description

Javascript Array Push(value)


// function for push in array

Array.prototype.Push=function(value){

var len = this.length;
  this[len] = value;/*from  w  w  w.  java  2 s.c  om*/
  len++;
  this.length = len;
  return len;
}



PreviousNext

Related