Closed jritzi closed 1 year ago
Both underscore and lodash return 1 for sortedIndex([0], 1), but micro-dash returns 0. It looks like the - 1 isn't needed when initializing max:
1
sortedIndex([0], 1)
0
- 1
max
let max = array ? array.length : 0;
Both underscore and lodash return
1
forsortedIndex([0], 1)
, but micro-dash returns0
. It looks like the- 1
isn't needed when initializingmax
: