An open API service indexing awesome lists of open source software.

https://github.com/codewell/is-empty

Check whether objects, arrays, strings etc. are empty or not.
https://github.com/codewell/is-empty

Last synced: 8 months ago
JSON representation

Check whether objects, arrays, strings etc. are empty or not.

Awesome Lists containing this project

README

          

# @codewell/is-empty

## Installation
```
npm install @codewell/is-empty
```

## Basic usage
```JavaScript
import isEmpty from '@codewell/is-empty';

isEmpty([]); // => true
isEmpty(''); // => true
isEmpty({}); // => true

isEmpty(['foo']); // => false
isEmpty('foo'); // => false
isEmpty({ foo: 'bar' }); // => false
```