1.0.2 • Published 9 months ago

check0arr v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

check0Arr

npm version npm license

Description

check0Arr is a simple utility that checks whether an array is empty. It returns true if the array is empty and false otherwise. It also validates the input to ensure it is an array. If the Array isn't an array, it returns 0

Installation

You can install check0Arr via npm:

npm install check0arr

Usage

An example about the usage:

const check0Arr = require('check0arr');

console.log(check0Arr([])); // true
console.log(check0Arr([1, 2, 3])); // false
console.log(check0Arr(null)); // false
console.log(check0Arr(1)); // false
console.log(check0Arr({})); // false
console.log(check0Arr('')); // false

LICENSE

The MIT Open Source License is used for this.

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago