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
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