non-empty
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

non-empty

Check if the value is not empty.

Installation

npm install non-empty

Usage

import notEmpty from 'non-empty';

notEmpty(0); //  false
notEmpty(''); // false
notEmpty([]); // false
notEmpty({}); // false
notEmpty('0'); // true
notEmpty([1]); // true

Readme

Keywords

Package Sidebar

Install

npm i non-empty

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

2.58 kB

Total Files

6

Last publish

Collaborators

  • waterlemons2k