import { Comp } from "https://deno.land/x/rimbu@1.0.4/common/comp.ts";
const { toEq } = Comp;
Returns an Eq
equality instance thet will return true when the given comp
comparable instance returns 0.
Examples
Example 1
Example 1
const eq = Comp.toEq(Comp.objectComp())
console.log(eq({ a: 1, b: 2 }, { b: 2, a: 1 }))
// => true