@bret/truthy
Determines if something should be considered a synonym for true
Last updated 5 years ago by bret .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bret/truthy 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |