This function mirrors the indexOf function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes.
indexOf
Returns the index of the first occurrence of a given string.
String to search through
The string to search for
Start of searching. Default is 0
0
Index of the first occurrence of a given string
This function mirrors the
indexOf
function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes.Returns the index of the first occurrence of a given string.