diff --git a/underscore.js b/underscore.js index c88ccdcf1..eb6f85e99 100644 --- a/underscore.js +++ b/underscore.js @@ -1185,7 +1185,7 @@ // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal). if (a === b) return a !== 0 || 1 / a === 1 / b; // A strict comparison is necessary because `null == undefined`. - if (a == null || b == null) return a === b; + if (a == null || b == null) return false; // `NaN`s are equivalent, but non-reflexive. if (a !== a) return b !== b; // Exhaust primitive checks