Skip to content

Commit 1782f06

Browse files
authored
Merge pull request #545 from zhangbg/en
Update array methods article
2 parents 04b2fcf + 841386f commit 1782f06

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)