From 422d35438c93d02b363d71af340beddbd86c036c Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 20 Dec 2010 16:52:24 -0500 Subject: [PATCH] updating _.isNaN comment doc. --- underscore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/underscore.js b/underscore.js index 319fc789b..1f18e1e61 100644 --- a/underscore.js +++ b/underscore.js @@ -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; };