Function unescapedIndexOf

  • Identical to indexOf but will only match values when they are not preceded by a backslash character.

    Parameters

    • buffer: string

      String to search

    • search: string

      Value to look for

    • Optional pos: number

      Start position

    Returns number

    The position, or -1 if not found

Generated using TypeDoc