1.0.2 • Published 4 years ago

@magnetar/is-empty v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

It will simply check if the provided value qualifies as empty. Will return boolean i.e., (true or false) accordingly.

npm i @magnetar/is-empty
const isEmpty = require('@magnetar/is-empty');

isEmpty(''); // returns true
isEmpty(false); // returns true
isEmpty(undefined); // returns true
isEmpty(null); // returns true

isEmpty('data'); // returns false
isEmpty(true); // returns false
1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago