This package check a value and return true if it is null or empty
npm install checkemptyjavascript
const checkEmpty = require('checkempty');
console.log(checkEmpty(null)); // return true
console.log(checkEmpty("")); // return true
console.log(checkEmpty("number or string or anything else")); // return false
``