import { Comp } from "https://deno.land/x/rimbu@0.13.0/common/internal.ts";
const { anyDeepComp } = Comp;
Returns a Comp instance that compares any value using default comparison functions. For Iterables and objects, their elements are compared recursively.
Examples
Example 1
Example 1
const c = Comp.anyDeepComp();
console.log(c.compare({ a: 1, b: 1 }, { b: 1, a: 1 }))
// => 0
console.log(c.compare([{ a: 1, b: 1 }], [{ b: 1, a: 1 }]))
// => 0