1 contributor
Like
Install index-of as a package?
Copied
npm i @bit/justin-capalbo.ramda.index-of
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
indexOf (
target:
*
,xs:
) : Array
Number
Returns the position of the first occurrence of an item in an array, or -1
if the item is not included in the array. R.equals
is used to
determine equality.
Example
Arguments
target:
*
The item to find.
xs:
Array
The array to search in.
Returns
Number
the index of the target, or -1 if the target is not found.