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