@codewell/is-empty
v1.0.1
Published
## Installation ``` npm install @codewell/is-empty ```
Downloads
14
Readme
@codewell/is-empty
Installation
npm install @codewell/is-empty
Basic usage
import isEmpty from '@codewell/is-empty';
isEmpty([]); // => true
isEmpty(''); // => true
isEmpty({}); // => true
isEmpty(['foo']); // => false
isEmpty('foo'); // => false
isEmpty({ foo: 'bar' }); // => false