From a2fc956fe8924f7b6a98892b3e8f556a98b4c313 Mon Sep 17 00:00:00 2001 From: zhangbg Date: Thu, 4 May 2017 21:22:24 +0800 Subject: [PATCH 1/2] Update array methods article Update array methods article --- 1-js/05-data-types/05-array-methods/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/05-array-methods/article.md b/1-js/05-data-types/05-array-methods/article.md index e0b70a6a..bc5ebcd6 100644 --- a/1-js/05-data-types/05-array-methods/article.md +++ b/1-js/05-data-types/05-array-methods/article.md @@ -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(...items)` -- adds items to the beginning, -- `arr.unshift()` -- extracts an item from the beginning. +- `arr.shift()` -- extracts an item from the beginning. +- `arr.unshift(...items)` -- adds items to the beginning, Here are few others. From 841386f9276220b0128a2f4880d492000c5cb151 Mon Sep 17 00:00:00 2001 From: zhangbg Date: Thu, 4 May 2017 21:24:34 +0800 Subject: [PATCH 2/2] Update array methods article Update array methods article --- 1-js/05-data-types/05-array-methods/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/05-array-methods/article.md b/1-js/05-data-types/05-array-methods/article.md index bc5ebcd6..b521a854 100644 --- a/1-js/05-data-types/05-array-methods/article.md +++ b/1-js/05-data-types/05-array-methods/article.md @@ -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.