isempty-typeof
To check the data is empty or not. And also check the type of object wheater Array, Object, Function, Number, String or Boolean. It is very light weight module.
Install
npm install isempty-typeof --save
How to require/import
;
or
const check = ;
Examples of how to use it
// To check data is empty or not checks; // true checks; // false checks; // true checks; // false checks; // true checks; // false // To check the typeOf. checks; //Array checks; //Array checks; //Object
Note
In isEmpty method if you consider zero not to a empty then send secound parameter true.
checks; // truechecks; // false