Skip to content

Commit

Permalink
update _.eq function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Nov 21, 2016
1 parent 2c2abf8 commit 6d7225d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@
// Identical objects are equal. `0 === -0`, but they aren't identical.
// 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`.
// `null` or `undefined` only equal to itself (strict comparison).
if (a == null || b == null) return false;
// `NaN`s are equivalent, but non-reflexive.
if (a !== a) return b !== b;
Expand Down

0 comments on commit 6d7225d

Please sign in to comment.