Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

intensify

1.0.1 • Public • Published

intensify.js

Intensifies it's argument: falsy stuff to false, truthy stuff to true.

Install

$ npm i -S intensify
 
const intensify = require('intensify');
 
intensify(false)
=> false
intensify('')
=> false
intensify(undefined)
=> false
intensify(0)
=> false
intensify(null)
=> false
intensify(NaN)
=> false
 
intensify(anythingElse)
=> true
 
// Very good 

Install

npm i intensify

DownloadsWeekly Downloads

10

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar