(input: any)
| 49 | const hashCache = new WeakMap<object, number>() |
| 50 | |
| 51 | export function hash(input: any): number { |
| 52 | const hasher = new MurmurHashStream() |
| 53 | updateHasher(hasher, input) |
| 54 | return hasher.digest() |
| 55 | } |
| 56 | |
| 57 | function hashObject(input: object): number { |
| 58 | const cachedHash = hashCache.get(input) |