notShallowEqual()function

notShallowEqual(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 shallowly equal.

Are two unknown values not shallowly equal?

Examples

notShallowEqual({ a: 1 }, { a: 2 }) // true