non-empty
Version:
Check if the value is not empty
23 lines (16 loc) • 290 B
Markdown
# non-empty
Check if the value is not empty.
## Installation
```sh
npm install non-empty
```
## Usage
```js
import notEmpty from 'non-empty';
notEmpty(0); // false
notEmpty(''); // false
notEmpty([]); // false
notEmpty({}); // false
notEmpty('0'); // true
notEmpty([1]); // true
```