represents intervals at which slices should be performed by sliceIntervals.
start
number
end
undefined
// mathematically represents the set of intervals: { [0, 10), [20, 30), [90, Inf), [15, arr.length - 15) }const my_intervals: Intervals = [0, 10, 20, 30, 90, undefined, 15, -15] Copy
// mathematically represents the set of intervals: { [0, 10), [20, 30), [90, Inf), [15, arr.length - 15) }const my_intervals: Intervals = [0, 10, 20, 30, 90, undefined, 15, -15]
represents intervals at which slices should be performed by sliceIntervals.
start
index, which should be:number
end
index, which can one of:number
number
, for reverse indexingundefined
, for last element (inclusive) indexing