notDeepEqual()function

notDeepEqual(left: unknown, right: T): left is T
ParamType
leftunknown
The value to check and narrow. required
rightT
The value to compare against. required
Return
left is T
true if the values are not deeply equal.

Are two unknown values not deeply equal?

Examples

notDeepEqual({ a: { b: 1 } }, { a: { b: 2 } }) // true