Skip to content

Instantly share code, notes, and snippets.

@gtomitsuka
Last active August 29, 2015 14:20
Show Gist options
  • Save gtomitsuka/19864be3181cc2c0108a to your computer and use it in GitHub Desktop.
Save gtomitsuka/19864be3181cc2c0108a to your computer and use it in GitHub Desktop.
parseBool - JS Boolean parsing utility
//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