🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@bret/truthy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bret/truthy

Determines if something should be considered a synonym for true

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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.

  • existy

References

License

ISC

Keywords

existy

FAQs

Package last updated on 16 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts