indexOf

number indexOf(container, value, startIndex)

Returns the index where value is found in container.

Parameters

  1. containerarray or text to search for value.
  2. value — array element or text subsection to search for.
  3. startIndex — optional index in container where to start searching. 0 if omitted.

Returns