MCPcopy Create free account
hub / github.com/CommE2E/comm / hash

Function hash

lib/utils/objects.js:62–67  ·  view source on GitHub ↗
(obj: ?Object)

Source from the content-addressed store, hash-verified

60}
61
62function hash(obj: ?Object): number {
63 if (!obj) {
64 return -1;
65 }
66 return stringHash(stableStringify(obj));
67}
68
69// This function doesn't look at the order of the hashes inside of the array
70// e.g `combineUnorderedHashes([1,2,3]) === combineUnorderedHashes([3,1,2])`

Callers 10

getServerInfoHashFunction · 0.90
getServerInfoHashFunction · 0.90
getHashFunction · 0.90
getServerInfoHashFunction · 0.90
checkStateFunction · 0.90
reduceIntegrityStoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected