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
The rule should warn against code that tries to compare against -0, since that will not work as intended. That is, code like x === -0 will pass for both +0 and -0. The author probably intended Object.is(x, -0).
The rule should warn against code that tries to compare against
-0
, since that will not work as intended. That is, code likex === -0
will pass for both+0
and-0
. The author probably intendedObject.is(x, -0)
.http://eslint.org/docs/rules/no-compare-neg-zero
The text was updated successfully, but these errors were encountered: