JavaScript: Array.prototype.shift

By Xah Lee. Date: . Last updated: .
arrayX.shift()
Remove and return the first item.
const ar = [3,4,5];
console.log( ar.shift () ); // 3
console.log( ar ); // [4,5]
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Array

prototype