In this post I will write about some tips on JavaScript Conversion from type to values etc.
Tip 1: Boolean values
In JavaScript one can use the double not (!!) to convert a variable to a Boolean. What the !! operator (poor man casting) does is, it first cast the data to a true Boolean and then it flips it, and the second operator flips it back to the correct Boolean value.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |





