Object.is semantics: treats NaN===NaN and distinguishes +0/-0
(a, b)
| 17 | |
| 18 | /** Object.is semantics: treats NaN===NaN and distinguishes +0/-0 */ |
| 19 | function _sameValue(a, b) { |
| 20 | // eslint-disable-next-line no-self-compare |
| 21 | return a === b ? (a !== 0 || 1 / a === 1 / b) : (a !== a && b !== b); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * A reactive effect. Re-runs when its dependencies change. |