Complete identity removal module. (#2993)

This commit is contained in:
Michał Lipiński
2017-02-09 22:54:29 +01:00
committed by John-David Dalton
parent 39931f9eaa
commit d460c42230
5 changed files with 5 additions and 12 deletions

View File

@@ -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