notShallowEqual()function
notShallowEqual(left: unknown, right: T): left is T
| Param | Type | |
|---|---|---|
left | unknown | The value to check and narrow. required |
right | T | 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