Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

is-falsy

0.0.1 • Public • Published

is-falsy

Predicate that returns true for falsy values.

Install

npm install is-falsy
bower install is-falsy

Usage

var isFalsy = require('is-falsy');
 
console.log(isFalsy('')); // true
console.log(isFalsy(0)); // true
console.log(isFalsy(null)); // true
console.log(isFalsy(undefined)); // true
console.log(isFalsy(1)); // false
console.log(isFalsy({})); // false
console.log(isFalsy([])); // false
console.log(isFalsy(function(){})); // false

License

MIT

Install

npm i is-falsy

DownloadsWeekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar