Slice
methodsReturns a single-level deep copy of a portion of an array. An equivalent of Array.prototype.slice. The result of the slice method is not an instance of ObvservableArray—it is a regular JavaScript Array object.
The
slicemethod does not modify the originalObservableArray.
Parameters:beginNumber
endNumber
A zero-based index at which the extraction will start.
A zero-based index at which the extraction will end. If end is omitted, slice extracts to the end of the sequence.