What is the !! operator in JavaScript?

Posted by Hexagon Theory on Stack Overflow See other posts from Stack Overflow or by Hexagon Theory
Published on 2009-04-24T08:13:58Z Indexed on 2010/04/07 2:23 UTC
Read the original article Hit count: 269

Filed under:
|

I've seen code that seems to use an operator I don't recognize, in the form of two exclamation points, like so: !!. Can someone please tell me what this operator does?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about operators