Skip to content

isEqual

Deeply compare two values.

Usage

ts
import { isEqual } from 'rattail'

isEqual({ n: 1 }, { n: 1 })
// return true
isEqual([1, 2, 3], [1, 2, 3])
// return true

Arguments

ArgTypeDefaults
valueany
otherany

Return

Type
boolean