Function indexOf

  • indexOf(searchString, position?): number
  • Returns the position of the first occurrence of a substring.

    Parameters

    • searchString: string

      The substring to search for in the string

    • Optionalposition: number

      The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.

    Returns number

Settings

Member Visibility

AltStyle によって変換されたページ (->オリジナル) /