I understand that !!
converts anything to a boolean value, but why would you want to do this:
if (!!someObject) { ... }
When you can just do:
if (someObject) { ... }
EDIT:
Just to clarify, I'm simply asking why you would write code like in the first example, rather than that in the second example. Are there any practical differences?