Loading ...
Sorry, an error occurred while loading the content.

1093Why isn't !! OK?

Expand Messages
  • iain_dalton
    Feb 1, 2010
    • 0 Attachment
      In JavaScript: A Survey of the Language, you wrote:

      !! can be used as a prefix operator, converting its operand to a boolean.

      but JSLint says:

      Confusing use of '!'.

      (twice). What's wrong with it, and is Boolean() preferred now?
    • Show all 6 messages in this topic