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
- Host: GitHub
- URL: https://github.com/waterlemons2k/non-empty
- Owner: WaterLemons2k
- License: mit
- Created: 2024-07-06T16:01:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-06T16:01:13.000Z (11 months ago)
- Last Synced: 2025-01-28T02:18:57.219Z (4 months ago)
- Language: JavaScript
- Homepage: https://npmjs.com/package/non-empty
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```