import { Eq } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { anyShallowEq } = Eq;
Returns an Eq instance that checks equality of any values. For composed values (objects and iterables) it will enter 1 level, and if again compound values are found, they are compared with Object.is.
Examples
Example 1
Example 1
const eq = anyFlatEq()
console.log(eq(1, 'a'))
// => false
console.log(eq({ a: 1, b: 2 }, { b: 2, a: 1 }))
// => true
console.log(eq([{ a: 1, b: 2 }], [{ b: 2, a: 1 }]))
// => false