Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/mod.ts>Eq.objectIs

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
variable Eq.objectIs
import { Eq } from "https://deno.land/x/rimbu@0.13.5/core/mod.ts";
const { objectIs } = Eq;

An Eq instance that uses Object.is to determine if two objects are equal.

Examples

Example 1

const eq = Eq.objectIs
console.log(eq(5, 5))
// => true
console.log(eq(5, 'a'))
// => false

type

Eq<any>