'0' && ('0' == false)
// true
We’ll just have to agree to disagree, javascript.
Update: this is what I mean by “truthy” and “falsy”:
function truthy(x) { return !!x; };
function falsy(x) { return !x; };
This entry was posted by on June 08, 2010 in wtfjs.
Comments