Returns a copy of a section of a typed array.
slice(start?, end?)
start optional
The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.
If the start is negative, it indicates an offset from the end of array.
end optional
The end index of the specified portion of the array. This is exclusive of the element at the index 'end’. If end is undefined, then the slice extends to the end of the array.
If the end is negative, it indicates an offset from the end of array.
A new typed array.
new Int32Array([5, 6, 7, 8, 9]).slice(3)
Int32Array [8, 9]