collection-utils
Advanced tools
Comparing version
@@ -508,5 +508,3 @@ "use strict"; | ||
} | ||
if (hasOwnProperty(a, "equals") && | ||
typeof a.equals === "function" && | ||
hasOwnProperty(b, "equals") && | ||
if (typeof a.equals === "function" && | ||
typeof b.equals === "function") { | ||
@@ -559,3 +557,5 @@ return a.equals(b); | ||
return (h + 2) | 0; | ||
if (hasOwnProperty(x, "hashCode") && typeof x.hashCode === "function") { | ||
if (x === null) | ||
return (h + 3) | 0; | ||
if (typeof x.hashCode === "function") { | ||
return x.hashCode(); | ||
@@ -562,0 +562,0 @@ } |
{ | ||
"name": "collection-utils", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Utility functions for Javascript collections", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/quicktype/collection-utils", |
Sorry, the diff of this file is not supported yet
48047
-0.11%