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

List.indexOf

indexOf($value)

Description

Find the first position of $value in the List.

If value is not found, -1 is returned.

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

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

See Also