List
LPOS
Returns the index of matching elements inside a list.
Arguments
key
string
requiredThe key of the list.
element
unknown
requiredThe element to match.
opts
rank
number
The rank of the element to match. If specified, the element at the given rank is matched instead of the first element.
count
number
The maximum number of elements to match. If specified, an array of elements is returned instead of a single element.
maxLen
number
Limit the number of comparisons to perform.
Response
The index of the matching element or an array of indexes if opts.count
is
specified.