Skip to main content
Module

x/structurae/index.ts>StringView#indexOf

Data structures for high-performance JavaScript applications.
Latest
method StringView.prototype.indexOf
import { StringView } from "https://deno.land/x/structurae@4.0.1/index.ts";

Returns the index within the StringView of the first occurrence of the specified value, starting the search at start. Returns -1 if the value is not found.

Parameters

searchValue: IndexedCollection

the value to search for

optional
fromIndex = [UNSUPPORTED]

the index at which to start the search

Returns

number

the index of the first occurrence of the specified value