Function indexRange

  • Get non-negative index range within string.

    Parameters

    • x: string

      a string

    • start: number

      start index

    • end: number

      end index

    Returns [number, number]

    +ve index range [start, end]

Generated using TypeDoc