public native indexOf(value as String, start as Int = 0) as Int
Finds the first index of a substring starting from a position.
| Parameter | Description |
|---|---|
value | Substring to find. |
start | Start index (default: 0). |
Index of first occurrence, or -1 if not found.
assert "banane".indexOf("na") == 2