677Forcing a Boolean value in Javascript aka ‘The double negative trick’
return !!someValueThatisNotBooleanButShouldBe;
I first encountered it at Mark Pilgrim'sDive Into HTML5. Anyone else remembers his classic Kant Pro Generator from the olden days?