Skip to content

Commit 0b51eb1

Browse files
author
name
committed
deploy
1 parent 5462a89 commit 0b51eb1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arrays/shift.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Shift
2+
3+
What Shift does to an array is delete the first index of that array and move all indexes to the left.
4+
5+
```javascript
6+
var array = [1, 2, 3];
7+
8+
array.shift();
9+
10+
console.log(array);

0 commit comments

Comments
 (0)