mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
var baseSortedIndexBy = require('./_baseSortedIndexBy'),
|
||||
identity = require('./identity');
|
||||
identity = require('./identity'),
|
||||
isSymbol = require('./isSymbol');
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295,
|
||||
@@ -26,7 +27,8 @@ function baseSortedIndex(array, value, retHighest) {
|
||||
var mid = (low + high) >>> 1,
|
||||
computed = array[mid];
|
||||
|
||||
if ((retHighest ? (computed <= value) : (computed < value)) && computed !== null) {
|
||||
if (computed !== null && !isSymbol(computed) &&
|
||||
(retHighest ? (computed <= value) : (computed < value))) {
|
||||
low = mid + 1;
|
||||
} else {
|
||||
high = mid;
|
||||
|
||||
Reference in New Issue
Block a user