jquery shift() code example
Example 1: remove first element of array javascript
const arr = ['foo', 'bar', 'qux', 'buz'];
arr.shift(); // 'foo'
arr; // ['bar', 'qux', 'buz']
Example 2: how to remove first element of array in javascript
let numbers = ["I'm Not A Number!", 1, 2, 3];
numbers.shift();