is-falsy
v0.0.1
Published
Predicate that returns true for "falsy" values.
Downloads
20
Readme
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