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]

JavaScript: Array, add/remove items

BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Array

prototype