Javascript Array skip(n)
Array.prototype.skip=function(n){ let skippedArray=[]; for(let i =n-1,len=this.length;i<len;i++){ skippedArray.push(this[i]);//from ww w .j a v a2s . c o m } return skippedArray; }