toolish - v0.2.5
    Preparing search index...

    Function normalizeRangeEnd

    • Normalizes an index denoting the end of a range within a longer array-like structure. Effectively ensures that it is within [start, limit]. You can use negative indices to count back from the end.

      If end is omitted, limit is assumed. If start is omitted, 0 is assumed.

      Parameters

      • limit: number
      • end: number = limit
      • start: number = 0

      Returns number