public native lastIndexOf(value as String, start as Int = -1) as Int
Finds the last index of a substring up to a position.
| Parameter | Description |
|---|---|
value | Substring to find. |
start | Start index from the left limit (default: end of string). |
Index of last occurrence, or -1 if not found.
assert "banana".lastIndexOf("na") == 4