1.0.0 • Published 7 years ago

check-nonvalue v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Check NonValue

Micro library to check if a given JavaScript value is a nonvalue (undefined or null) or not.

Travis CI npm npm

Installation

npm install --save check-nonvalue

Usage

checkValue(2);
// Output 2

let x;
checkValue(x);
// Output undefined is a non-value!

Tests

npm run test

Contributing

PR's are most welcome.

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

License

MIT License

1.0.0

7 years ago