toolish - v0.2.5
    Preparing search index...

    Function normalizeRangeLength

    • Normalizes the length of a range within a longer array-like structure, such that it does not exceed the end of that structure. Effectively ensures that it is within [0, limit - start]. You can use a negative start index to count back from the end.

      If start is omitted, 0 is assumed.

      Parameters

      • limit: number
      • length: number
      • start: number = 0

      Returns number