Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!

String.lastIndexOf

lastIndexOf(substring, offset = 0)

Description

Find the position of a substring, starting at the end of the string.

'one fish two fish'.lastIndexOf('fish');
//= 13

See Also