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

List.lastIndexOf

lastIndexOf($value)

Description

Find the last position of $value in the List.

If $value is not found, -1 is returned.

['a', 'b', 'c', 'b', 'a'].indexOf('b');
//=  3

['a', 'b', 'c'].indexOf('X');
//= -1

See Also