We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e68f06 + e1741ab commit 28e9704Copy full SHA for 28e9704
test/objects.js
@@ -844,6 +844,9 @@
844
assert.notOk(_.isNaN(new Number(0)), 'wrapped 0 is not NaN');
845
assert.ok(_.isNaN(NaN), 'but NaN is');
846
assert.ok(_.isNaN(new Number(NaN)), 'wrapped NaN is still NaN');
847
+ if (typeof Symbol !== 'undefined'){
848
+ assert.notOk(_.isNaN(Symbol()), 'symbol is not NaN');
849
+ }
850
});
851
852
QUnit.test('isNull', function(assert) {
underscore.js
@@ -1320,7 +1320,7 @@
1320
1321
// Is the given value `NaN`?
1322
_.isNaN = function(obj) {
1323
- return isNaN(obj) && _.isNumber(obj);
+ return _.isNumber(obj) && isNaN(obj);
1324
};
1325
1326
// Is a given value a boolean?
0 commit comments