Possible Duplicate:
What is the !! (not not) operator in JavaScript?
I'm looking through some code and see an IF statement that looks like the one below. Can anyone tell me why there are two !!s instead of one? I've never seen this before and can't dig anything up on Google because it's ignoring the special character.
if (!!myDiv && myDiv.className == 'visible') {
}