Version: v0.8.1 - Beta.  We welcome contributors & feedback.

List.lastIndexOf

lastIndexOf($value) -> number

Description

Find the last position of $value in the List.

If $value is not found, 0 is returned.

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

['a', 'b', 'c'].indexOf('X')
//= 0

See Also