import { Comp } from "https://deno.land/x/rimbu@0.13.5/core/main/exports.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