just-compare
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -21,3 +21,5 @@ module.exports = compare; | ||
} | ||
if (Number.isNaN(value1) && Number.isNaN(value2)) { | ||
/* eslint-disable no-self-compare */ | ||
// if both values are NaNs return true | ||
if ((value1 !== value1) && (value2 !== value2)) { | ||
return true; | ||
@@ -24,0 +26,0 @@ } |
{ | ||
"name": "just-compare", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "compare two collections", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3372
76