Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
string.indexOf()
Get the location of a subString.
Description
The indexOf()
method returns the starting location of the first match
with otherString, beginning at location position in this
String. The position index is zero-based.
The method returns -1
if a match with otherString isn’t found.
Return value
Type | Description |
---|---|
Starting location of the first matching otherString or |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!