-
In short |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array. The original array will not be modified. See details at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice |
Beta Was this translation helpful? Give feedback.
-
The slice() method returns selected elements in an array, as a new array. |
Beta Was this translation helpful? Give feedback.
The slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array. The original array will not be modified.
See details at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice