Skip to content

Commit a2fc956

Browse files
authored
Update array methods article
Update array methods article
1 parent 04b2fcf commit a2fc956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ We already know methods that add and remove items from the beginning or the end:
1010

1111
- `arr.push(...items)` -- adds items to the end,
1212
- `arr.pop()` -- extracts an item from the end,
13-
- `arr.shift(...items)` -- adds items to the beginning,
14-
- `arr.unshift()` -- extracts an item from the beginning.
13+
- `arr.shift()` -- extracts an item from the beginning.
14+
- `arr.unshift(...items)` -- adds items to the beginning,
1515

1616
Here are few others.
1717

0 commit comments

Comments
 (0)