Miss any of our Open RFC calls?Watch the recordings here! »

nd-is-empty

1.0.9 • Public • Published

is-empty

check variable, object array and array is empty or not

Installation

npm install nd-is-empty

Example

 var empty = require('nd-is-empty'); 
 var val = '';
 empty(val)   // false
 
 val = {};
 empty(val)   // false
 
 val = [];
 empty(val)   // false
 
 val = {};
 empty(val.data)   // false
 
 val = '123';
 empty(val)   // true
 

License

MIT

Install

npm i nd-is-empty

DownloadsWeekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

1.68 kB

Total Files

3

Last publish

Collaborators

  • avatar