Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index 928670c3ae39c6c99e3baaee220ff3f8b2dfdf7d..7bb2393a7da32fb4a10251792b276589185e0100 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -25,7 +25,7 @@ function HashToEntry(table, hash, numBuckets) { |
function SetFindEntry(table, numBuckets, key, hash) { |
- var keyIsNaN = IS_NUMBER(key) && NUMBER_IS_NAN(key); |
+ var keyIsNaN = NumberIsNaN(key); |
for (var entry = HashToEntry(table, hash, numBuckets); |
entry !== NOT_FOUND; |
entry = ORDERED_HASH_SET_CHAIN_AT(table, entry, numBuckets)) { |
@@ -33,7 +33,7 @@ function SetFindEntry(table, numBuckets, key, hash) { |
if (key === candidate) { |
return entry; |
} |
- if (keyIsNaN && IS_NUMBER(candidate) && NUMBER_IS_NAN(candidate)) { |
+ if (keyIsNaN && NumberIsNaN(candidate)) { |
return entry; |
} |
} |
@@ -43,7 +43,7 @@ function SetFindEntry(table, numBuckets, key, hash) { |
function MapFindEntry(table, numBuckets, key, hash) { |
- var keyIsNaN = IS_NUMBER(key) && NUMBER_IS_NAN(key); |
+ var keyIsNaN = NumberIsNaN(key); |
for (var entry = HashToEntry(table, hash, numBuckets); |
entry !== NOT_FOUND; |
entry = ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets)) { |
@@ -51,7 +51,7 @@ function MapFindEntry(table, numBuckets, key, hash) { |
if (key === candidate) { |
return entry; |
} |
- if (keyIsNaN && IS_NUMBER(candidate) && NUMBER_IS_NAN(candidate)) { |
+ if (keyIsNaN && NumberIsNaN(candidate)) { |
return entry; |
} |
} |