mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Complete identity removal module. (#2993)
This commit is contained in:
committed by
John-David Dalton
parent
39931f9eaa
commit
d460c42230
@@ -1,5 +1,4 @@
|
||||
import baseSortedIndexBy from './baseSortedIndexBy.js'
|
||||
import identity from '../identity.js'
|
||||
import isSymbol from '../isSymbol.js'
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
@@ -35,7 +34,7 @@ function baseSortedIndex(array, value, retHighest) {
|
||||
}
|
||||
return high
|
||||
}
|
||||
return baseSortedIndexBy(array, value, identity, retHighest)
|
||||
return baseSortedIndexBy(array, value, value => value, retHighest)
|
||||
}
|
||||
|
||||
export default baseSortedIndex
|
||||
|
||||
Reference in New Issue
Block a user