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

x/rimbu/core/main/exports.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@1.0.3/core/main/exports.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>