import { Hasher } from "https://deno.land/x/rimbu@0.14.0/hashed/common/index.ts";
const { anyDeepHasher } = Hasher;
Returns a Hasher instance that hashes any value, and traverses into an object or array to hash its elements.
Examples
Example 1
Example 1
const h = Hasher.anyDeepHasher()
console.log(h.hash({ a: 1, b: 2 }) === h.hash({ b: 2, a: 1 }))
// => true
console.log(h.hash([{ a: 1, b: 2 }]) === h.hash([{ b: 2, a: 1 }]))
// => true