Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

added 38 characters in body
Source Link
pimvdb
  • 155.2k
  • 80
  • 313
  • 358

The ECMAScript specification says so:

x == y is defined as (11.9.3):

If x is NaN, return false.

And ! calls ToBoolean (9.2) first (and then returns the opposite):

The result is false if the argument is +0, −0, or NaN; otherwise the result is true

The ECMAScript specification says so:

x == y is defined as (11.9.3):

If x is NaN, return false.

And ! calls ToBoolean (9.2):

The result is false if the argument is +0, −0, or NaN; otherwise the result is true

The ECMAScript specification says so:

x == y is defined as (11.9.3):

If x is NaN, return false.

And ! calls ToBoolean (9.2) first (and then returns the opposite):

The result is false if the argument is +0, −0, or NaN; otherwise the result is true

Source Link
pimvdb
  • 155.2k
  • 80
  • 313
  • 358

The ECMAScript specification says so:

x == y is defined as (11.9.3):

If x is NaN, return false.

And ! calls ToBoolean (9.2):

The result is false if the argument is +0, −0, or NaN; otherwise the result is true

lang-js

AltStyle によって変換されたページ (->オリジナル) /