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

https://github.com/waterlemons2k/non-empty

Check if the value is not empty
https://github.com/waterlemons2k/non-empty

Last synced: 4 months ago
JSON representation

Check if the value is not empty

Awesome Lists containing this project

README

        

# 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
```