1.0.1 • Published 10 years ago
@bret/truthy v1.0.1
truthy
Determines if something should be considered a synonym for true.
A modularized version of the truthy function found in Functional Javascript by Michael Fogus.
Install
$ npm i @bret/truthy --saveUsage
var truthy = require('@bret/truthy')
truthy(false) // false
truthy(undefined) // false
truthy(0) // true
truthy('') // trueContributing
Contributions welcome! Please read the contributing guidelines first.
Related
References
- Functional Javascript by Michael Fogus
- "this is my best module" - substack