SyntaxFix
Write A Post
Hire A Developer
Questions
Here's another option that's longer but may be more readable:
Boolean(Number("0")); // false Boolean(Number("1")); // true