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 theendindex, and omitting both parameters returns a shallow copy of the array.Remarks
Returns an empty array if
startorendis fractional orNaN.Example