You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { colorFromRange, css } from '@thi.ng/color'
export const color = () => css(colorFromRange('neutral'))
[DEBUG] Comparison with -0 using the "===" operator will also match 0 [equals-negative-zero]
../../node_modules/@thi.ng/binary/float.js:22:12:
22 │ if (x === -0)
╵ ~~
Floating-point equality is defined such that 0 and -0 are equal, so "x === -0" returns true for
both 0 and -0. You need to use "Object.is(x, -0)" instead to test for -0.
The text was updated successfully, but these errors were encountered:
[DEBUG] Comparison with -0 using the "===" operator will also match 0 [equals-negative-zero]
Floating-point equality is defined such that 0 and -0 are equal, so "x === -0" returns true for
both 0 and -0. You need to use "Object.is(x, -0)" instead to test for -0.
The text was updated successfully, but these errors were encountered: