starting index. defaults to 0
ending index. defaults to undefined
if length
is not provided. else end = length
(before offsetting)
length of the array in question. required if you want a numeric value of end
that is undefined
. defaults to undefined
Optional
offset: numberin the very end of evauation, add an addition offset to start
and end
indexes
a 3-tuple array of resolved [start
index, end
index, and length
of range (ie end - start
)]
Optional
start: numberOptional
end: numberOptional
length: undefinedOptional
offset: number
resolve the positive (normalized) starting and ending indexes of a range.
for both
start
andend
, a negative index can be used to indicate an index from the end of the range, if alength
is given.for example,
-2
refers to the second to last index (ielength - 2
).