Negative indices count backwards from the end of the array.
Like the built-in Array.slice(), the slice does not include the end index,
and omitting both parameters returns a shallow copy of the array.
Remarks
Returns an empty array if start or end is fractional or NaN.
Negative indices count backwards from the end of the array. Like the built-in
Array.slice()
, the slice does not include theend
index, and omitting both parameters returns a shallow copy of the array.Remarks
Returns an empty array if
start
orend
is fractional orNaN
.Example