Friday, September 24, 2010

Casting to a Boolean in JavaScript

I came across with this expression,



button.enabled = !!enable

!! is just a double not. This is just obscure.

No comments: