is-existy
v0.0.1
Published
Predicate that returns true for "existy" values.
Downloads
9
Readme
is-existy
Predicate that returns true for existy values.
Install
npm install is-existy
bower install is-existy
Usage
var isExisty = require('is-existy');
console.log(isExisty(null)); // false
console.log(isExisty(undefined)); // false
console.log(isExisty(0)); // true
console.log(isExisty(1)); // true
console.log(isExisty(false)); // true
console.log(isExisty(true)); // true
console.log(isExisty('')); // true
console.log(isExisty({})); // true
console.log(isExisty([])); // true
License
MIT