What does this expression mean "!!"
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-06-17T07:06:16Z
Indexed on
2010/06/17
7:13 UTC
Read the original article
Hit count: 120
JavaScript
Why would somebody use an expression like
var obj = {};
if(!!obj) alert('exists');
instead of just
if(obj) alert('exists');
?
Is there another usage for the "!!" thing ?
© Stack Overflow or respective owner