javascript - myVar = !!someOtherVar -
this question has answer here:
- what !! (not not) operator in javascript? 31 answers
can clarification on why want use this?
myvar = !!someothervar;
if need pass boolean value function, or anal evaluating booleans in conditional statements, casts someothervar
boolean double-negating it.
Comments
Post a Comment