npm

Need private packages and team management tools?Check out npm Orgs. »

@bret/truthy

1.0.1 • Public • Published

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

install

npm i @bret/truthy

Downloadsweekly downloads

57

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability