mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Ensure _.indexOf and _.lastIndexOf match NaN when performing a binary search.
This commit is contained in:
@@ -7066,8 +7066,9 @@
|
||||
strictEqual(func(empty, undefined, true), -1);
|
||||
});
|
||||
|
||||
test('`_.' + methodName + '` should match `NaN`', 1, function() {
|
||||
test('`_.' + methodName + '` should match `NaN`', 2, function() {
|
||||
strictEqual(func([1, NaN, 3], NaN), 1);
|
||||
strictEqual(func([1, 3, NaN], NaN, true), 2);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user