![]() ![]() In other words, the returned array contains all elements from the starting to ending of the array. If only one parameter (index value) is specified, the slice() method creates a sequence of elements that begins from index and ends on the last array element. ![]() A new array that contains the sliced out or extracted elements. The slice() method returns a shallow copy of elements from the original array. The slice() method of Array object comes into two flavors that are as: array.slice(index) ![]()
0 Comments
Leave a Reply. |