Skip to content

bcomnes/existy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

existy

npm travis coverage

Check if something exists (e.g. not null || undefined)

A modularized version of the existy function found in Functional Javascript by Michael Fogus.

Install

$ npm i existy --save

Usage

var existy = require('existy')
existy(null) // false
existy(undefined) // false
existy(0) // true
existy(false) // true

Contributing

Contributions welcome! Please read the contributing guidelines first.

Related

References

Licenses

ISC

About

Check if something exists (e.g. not null || undefined)

Resources

License

Stars

Watchers

Forks

Packages

No packages published