Merge pull request #545 from zhangbg/en

Update array methods article
This commit is contained in:
Ilya Kantor 2017-05-05 01:56:34 +03:00 committed by GitHub
commit 1782f064bb

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.push(...items)` -- adds items to the end,
- `arr.pop()` -- extracts an item from the end, - `arr.pop()` -- extracts an item from the end,
- `arr.shift(...items)` -- adds items to the beginning, - `arr.shift()` -- extracts an item from the beginning,
- `arr.unshift()` -- extracts an item from the beginning. - `arr.unshift(...items)` -- adds items to the beginning.
Here are few others. Here are few others.