Array.prototype.zPush=function(){ for(var i=0;i<arguments.length;i++){ console.log(i) this[this.length]=arguments[i] } } var a = [1,2,3] a.zPush(4,5,6) console.log(a)