The array to slice.
Optionalstart: numberThe start position. A negative index will be treated as an offset from the end.
Optionalend: numberThe end position. A negative index will be treated as an offset from the end.
Returns the slice of array.
Creates a slice of
arrayfromstartup to, but not including,end.Note: This method is used instead of
Array#sliceto ensure dense arrays are returned.