From 4d6e2c6ed4b3b5c91d4cc4170f67e71dc948ae13 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 20 Oct 2011 18:08:08 -0300 Subject: [PATCH] isNaN comment --- underscore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/underscore.js b/underscore.js index a50ac4b81..381583ab4 100644 --- a/underscore.js +++ b/underscore.js @@ -774,9 +774,9 @@ return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed)); }; - // Is the given value `NaN`? `NaN` happens to be the only value in JavaScript - // that does not equal itself. + // Is the given value `NaN`? _.isNaN = function(obj) { + // `NaN` is the only value for which `===` is not reflexive. return obj !== obj; };