Skip to content

Commit 5500925

Browse files
committed
Merge pull request #2496 from marijaselakovic/master
Optimization of _.isNaN
2 parents 9f2fcbb + 10d2d64 commit 5500925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

underscore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@
13201320

13211321
// Is the given value `NaN`?
13221322
_.isNaN = function(obj) {
1323-
return _.isNumber(obj) && isNaN(obj);
1323+
return isNaN(obj) && _.isNumber(obj);
13241324
};
13251325

13261326
// Is a given value a boolean?

0 commit comments

Comments
 (0)