Skip to main content
Module

x/rimbu/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.1/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>