Skip to content

vaeum/not-empty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not empty

Small lib

NPM

NPM version Downloads

Install

npm i -S not-empty

Usage

import notEmpty from 'not-empty';

notEmpty(0, 'string', true, [1, 2, 4]); // true
notEmpty(0, '', true, [1, 2, 4]); // true
notEmpty(0, 'string', true, [], {}); // false
notEmpty(0, 'string', true, [23, 45], { test: true }); // true