0.0.2 • Published 1 year ago

force-to-boolean v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Force Boolean

Forced transform your variable into a boolean without worried.

How to install

  • via npm: npm install --save force-to-boolean
  • via yarn: yarn add force-to-boolean

How to use

// ES6+ Babel
import ForceBoolean from 'force-boolean'
// Typescript
import ForceBoolean from 'force-boolean'
// CommonJS
const ForceBoolean = require('force-boolean').default

const YOUR_VAR = 'false'
console.log(ForceBoolean(YOUR_VAR)) // it's return boolean false
0.0.2

1 year ago

0.0.1

1 year ago