Normalizes an index denoting the start of a range within a longer array-like structure. Effectively ensures that it is within [0, limit]. You can use a negative index to count back from the end.
If start is omitted, 0 is assumed.
normalizeRangeEnd and normalizeRangeLength.
Normalizes an index denoting the start of a range within a longer array-like structure. Effectively ensures that it is within [0, limit]. You can use a negative index to count back from the end.
If start is omitted, 0 is assumed.