Find the indices of characters in a source text.
The matched indices, or null if there is no match.
null
Linear on sourceText.
sourceText
In order for there to be a match, all of the characters in query must appear in source in the order given by query.
query
source
Characters are matched using strict === equality.
===
The source text which should be searched.
The characters to locate in the source text.
The index to start the search.
Generated using TypeDoc
Find the indices of characters in a source text.
Returns
The matched indices, or
nullif there is no match.Complexity
Linear on
sourceText.Notes
In order for there to be a match, all of the characters in
querymust appear insourcein the order given byquery.Characters are matched using strict
===equality.