mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Cleanup _.sortedIndexBy and _.sortedLastIndexBy test.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -17232,10 +17232,14 @@
|
|||||||
array.length = length;
|
array.length = length;
|
||||||
|
|
||||||
lodashStable.each(values, function(value) {
|
lodashStable.each(values, function(value) {
|
||||||
var steps = 0,
|
var steps = 0;
|
||||||
actual = func(array, value, function(value) { steps++; return value; });
|
|
||||||
|
|
||||||
var expected = (isSortedIndexBy ? !_.isNaN(value) : _.isFinite(value))
|
var actual = func(array, value, function(value) {
|
||||||
|
steps++;
|
||||||
|
return value;
|
||||||
|
});
|
||||||
|
|
||||||
|
var expected = (isSortedIndexBy ? !lodashStable.isNaN(value) : lodashStable.isFinite(value))
|
||||||
? 0
|
? 0
|
||||||
: Math.min(length, MAX_ARRAY_INDEX);
|
: Math.min(length, MAX_ARRAY_INDEX);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user