Anyway, I used to do this to coerce something to Boolean:Dave Reed
just showed me a much more compact way of doing that:
Probably not the most readable thing in the world but I could get used to that, the same way I got used to
|return something || null;|
when I want to coerce undefined into null as a return value.
(by the way, this is the first post I write with Windows Live Writer and its excellent code plug-in based on Wilco's code coloring stuff. Works great for me...)