iterator.indexOf¶
Searches $haystack for index of $needle, returns -1 if $needle is not in $haystack.
Arguments¶
then¶
- DataType
- mixed
- Required
- false
- Description
- Value to be returned if the condition if met.
else¶
- DataType
- mixed
- Required
- false
- Description
- Value to be returned if the condition if not met.
needle¶
- DataType
- mixed
- Required
- false
- Description
- Needle to search for in haystack
haystack¶
- DataType
- mixed
- Required
- false
- Description
- Haystack in which to look for needle
considerKeys¶
- DataType
- boolean
- Required
- false
- Description
- Tell whether to consider keys in the search assuming haystack is an array.