Like
Install sorted-index-of as a package?
Copied
npm i @bit/lodash.lodash.sorted-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
sortedIndexOf (
array:
Array
,value:
) : *
number
This method is like indexOf
except that it performs a binary
search on a sorted array
.
Example
Arguments
array:
Array
The array to inspect.
value:
*
The value to search for.
Returns
number
Returns the index of the matched value, else `-1`.