You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/05-array-methods/article.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -712,7 +712,7 @@ A cheat sheet of array methods:
712
712
-`shift()` -- extracts an item from the beginning,
713
713
-`unshift(...items)` -- adds items to the beginning.
714
714
-`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.
716
716
-`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.
0 commit comments