Arguments
string
required
The key of the list.
unknown
required
The element to match.
Response
The index of the matching element or an array of indexes if
opts.count is
specified.Returns the index of matching elements inside a list.
opts.count is
specified.