1.0.0 • Published 7 years ago
check-nonvalue v1.0.0
Check NonValue
Micro library to check if a given JavaScript value is a nonvalue (undefined or null) or not.
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