mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import baseSortedIndex from './_baseSortedIndex';
|
||||
import eq from './eq';
|
||||
import baseSortedIndex from './_baseSortedIndex.js';
|
||||
import eq from './eq.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.indexOf` except that it performs a binary
|
||||
@@ -14,8 +14,8 @@ import eq from './eq';
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* _.sortedIndexOf([1, 1, 2, 2], 2);
|
||||
* // => 2
|
||||
* _.sortedIndexOf([4, 5, 5, 5, 6], 5);
|
||||
* // => 1
|
||||
*/
|
||||
function sortedIndexOf(array, value) {
|
||||
var length = array ? array.length : 0;
|
||||
|
||||
Reference in New Issue
Block a user