public native replaceLast(oldValue as String, newValue as String) as String
Returns a copy where the last occurrence of oldValue is replaced by newValue.
A new string with the replacement applied.
assert "a-b-a".replaceLast("a", "x") == "a-b-x"