Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 192 Bytes

shift.md

File metadata and controls

10 lines (6 loc) · 192 Bytes

Shift

What Shift does to an array is delete the first index of that array and move all indexes to the left.

var array = [1, 2, 3]; 

array.shift(); 

console.log(array);