Skip to content

Commit

Permalink
updating _.isNaN comment doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Dec 20, 2010
1 parent 2dff99d commit 422d354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@
return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
};

// Is the given value NaN -- this one is interesting. NaN != NaN, and
// isNaN(undefined) == true, so we make sure it's a number first.
// Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
// that does not equal itself.
_.isNaN = function(obj) {
return obj !== obj;
};
Expand Down

0 comments on commit 422d354

Please sign in to comment.