.. _String.indexOf: ================================================ String.indexOf ================================================ :ref:`number` **indexOf** (:ref:`string` **searchValue**, :ref:`number` **offset**) Parameters ---------- +-----------------+------------------------------------+ | **searchValue** | The string for which to search. | +-----------------+------------------------------------+ | **offset** | The starting offset of the search. | +-----------------+------------------------------------+ Description ----------- Returns the index within the string of the first occurrence of the specified string, starting the search at fromIndex if provided.