diff --git a/index.js b/index.js index 26cec8d..2dfcb66 100644 --- a/index.js +++ b/index.js @@ -116,6 +116,7 @@ function equal(a, b) { return true; } + // Both NaN: NaN is the only value that isn't equal to itself return a !== a && b !== b; } // end fast-deep-equal