Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

author
name
Jul 29, 2022
0b51eb1 · Jul 29, 2022

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);