Last active
August 29, 2015 14:20
-
-
Save gtomitsuka/19864be3181cc2c0108a to your computer and use it in GitHub Desktop.
parseBool - JS Boolean parsing utility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//by Gabriel Tomitsuka | |
function parseBool(str){ | |
return str === 'true' || str !== '0'? true : false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment