@bret/truthy

Determines if something should be considered a synonym for true

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
11May 25, 2020Nov 16, 2015Minified + gzip package size for @bret/truthy in KB

Readme

truthy

npm travis coverage

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 --save

Usage

var truthy = require('@bret/truthy')
truthy(false) // false
truthy(undefined) // false
truthy(0) // true
truthy('') // true

Contributing

Contributions welcome! Please read the contributing guidelines first.

Related

References

License

ISC

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.