import { Eq } from "https://deno.land/x/rimbu@1.0.3/common/index.ts";
const { objectEq } = Eq;
Returns an Eq instance that checks equality of objects containing property values of type V by iteratively
applying given valueEq
to each of the object's property values.
Examples
Example 1
Example 1
const eq = Eq.objectEq()
console.log(eq({ a: 1, b: { c: 2 }}, { b: { c: 2 }, a: 1 }))
// => true
console.log(eq({ a: 1, b: { c: 2 }}, { a: 1, b: { c: 3 }}))
// => false