1.1.0 • Published 9 years ago

@nkcmr/bool v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

bool

cast truthy stuff to a boolean value

var bool = require('@nkcmr/bool')
bool('true') // => true
bool('yes') // => true
bool('no') // => false
bool('false') // => false
bool(0) // => false
bool(1) // => true
bool(-1) // => false
bool({}) // => false
bool({ foo: 'bar' }) // => true

theres more, check the code. it is pretty brief, but handy.

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago