Need a web developer?
The creator of SymbolHound is available for contract work for select clients. Send an email to email@example.com
to see if we might want to work together.
(so !!5 would be true). An easy way to describe it is: Boolean(5) === !!5; Same casting, fewer characters. Also, !! is not an operator. It's just the !
you need to get either 0/1. You may or may not consider (x) ? 1 : 0 clearer. not not. It's used to convert a value to a boolean !!nil #=> false !!"abc"
!!extra; //3 or 4 (Whose style is a different discussion.) When all you need is a boolean expression, the !! is redundant. Writing bool b = !!extra; makes as
is handy whenever you need a real boolean representation of some value. !! is just double ! !true // -> false !!true // -> true !! is a common way to
My frame is redirecting page !! How to stop it? My frame is redirecting page !! How to stop it? Possible Duplicate: How to prevent IFRAME from
What does !! (double exclamation point) mean? What does !! (double exclamation point) mean? In the code below, from a blog post by Alias , I noticed
Why use !! when converting int to bool? Why use !! when converting int to bool? What can be a reason for converting an integer to a boolean in this