Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f8b72b

Browse files
authored
Merge pull request #2146 from Ruslan-Aleev/patch-1
Changed "position" to "index" for slice() method
2 parents 9705a09 + 6d9b443 commit 1f8b72b

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)

AltStyle によって変換されたページ (->オリジナル) /