Function indexOf

  • Get first index of a given infix in string.

    Parameters

    • x: string

      a string

    • infix: string

      infix to look for

    • Optional start: number

      start index [0]

    Returns number

    first index of infix

Generated using TypeDoc