Convert string to Boolean in JavaScript.
Go to file
Sambo Chea 8be683772a add readme and example 2019-10-31 09:07:04 +07:00
src add booler function and exports 2019-10-31 09:03:22 +07:00
test add booler function and exports 2019-10-31 09:03:22 +07:00
.gitignore Initial commit 2019-10-31 08:14:38 +07:00
index.js add booler function and exports 2019-10-31 09:03:22 +07:00
LICENSE Initial commit 2019-10-31 08:14:38 +07:00
package-lock.json add booler function and exports 2019-10-31 09:03:22 +07:00
package.json add booler function and exports 2019-10-31 09:03:22 +07:00
README.md add readme and example 2019-10-31 09:07:04 +07:00

Booler: Convert any values to Boolean.

Convert string/values to Boolean in JavaScript.

Installing

Example

const booler = require('booler')

console.log(booler('f')) // return false
console.log(booler('t')) // return true

Run Test

$ npm run test