.index(val)
Description
Returns the index of the first occurrence of val in the string, or 0 if val is not found.
Parameters
val — value to search for.
Usage On Strings
log "hello world".index("world") // 7Last updated
Was this helpful?