From 6d9b4437a49f89de9098efba4bf02fc6699f4241 Mon Sep 17 00:00:00 2001 From: Ruslan Aleev Date: Thu, 24 Sep 2020 12:38:24 +0300 Subject: [PATCH] Changed "position" to "index" for slice() method --- 1-js/05-data-types/05-array-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 30169644..27747f70 100644 --- a/1-js/05-data-types/05-array-methods/article.md +++ b/1-js/05-data-types/05-array-methods/article.md @@ -712,7 +712,7 @@ A cheat sheet of array methods: - `shift()` -- extracts an item from the beginning, - `unshift(...items)` -- adds items to the beginning. - `splice(pos, deleteCount, ...items)` -- at index `pos` delete `deleteCount` elements and insert `items`. - - `slice(start, end)` -- creates a new array, copies elements from position `start` till `end` (not inclusive) into it. + - `slice(start, end)` -- creates a new array, copies elements from index `start` till `end` (not inclusive) into it. - `concat(...items)` -- returns a new array: copies all members of the current one and adds `items` to it. If any of `items` is an array, then its elements are taken. - To search among elements: