Check both strict equality (`0 == -0`) and `Object.is` (`NaN == NaN`)
(a: unknown, b: unknown)
| 83 | |
| 84 | /** Check both strict equality (`0 == -0`) and `Object.is` (`NaN == NaN`) */ |
| 85 | function sameValueZero(a: unknown, b: unknown) { |
| 86 | return a === b || Object.is(a, b); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Deep equality comparison used in assertions. |
no outgoing calls
no test coverage detected