Update array methods article

Update array methods article
This commit is contained in:
zhangbg 2017-05-04 21:24:34 +08:00 committed by GitHub
parent a2fc956fe8
commit 841386f927

View file

@ -10,8 +10,8 @@ We already know methods that add and remove items from the beginning or the end:
- `arr.push(...items)` -- adds items to the end,
- `arr.pop()` -- extracts an item from the end,
- `arr.shift()` -- extracts an item from the beginning.
- `arr.unshift(...items)` -- adds items to the beginning,
- `arr.shift()` -- extracts an item from the beginning,
- `arr.unshift(...items)` -- adds items to the beginning.
Here are few others.