Skip to content

Commit 6d9b443

Browse files
authored
Changed "position" to "index" for slice() method
1 parent e968646 commit 6d9b443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ A cheat sheet of array methods:
712712
- `shift()` -- extracts an item from the beginning,
713713
- `unshift(...items)` -- adds items to the beginning.
714714
- `splice(pos, deleteCount, ...items)` -- at index `pos` delete `deleteCount` elements and insert `items`.
715-
- `slice(start, end)` -- creates a new array, copies elements from position `start` till `end` (not inclusive) into it.
715+
- `slice(start, end)` -- creates a new array, copies elements from index `start` till `end` (not inclusive) into it.
716716
- `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.
717717

718718
- To search among elements:

0 commit comments

Comments
 (0)