CO
codevor/js-is-empty
📠Basic Empty Checker Library
ðŸ“Empty Checker
ðŸ“js-is-empty makes your empty checks for you. We have empty checks for
ArrayObjectString
Installation
js-is-empty is available on npm/yarn:
$ npm install @codevor/js-is-empty --save
$ yarn add @codevor/js-is-emptyUsage
With ES6/import
import { isArrayEmpty, isObjectEmpty } from '@codevor/js-is-empty';
const myEmptyArray = [];
const person = { name: 'John Doe', age: 32 };
isArrayEmpty(myEmptyArray); // => true
isObjectEmpty(person); // => falseWith require
const jsIsEmpty = require('@codevor/js-is-empty');
const isArrayEmpty = jsIsEmpty.isArrayEmpty;
const isObjectEmpty = jsIsEmpty.isObjectEmpty;
const myEmptyArray = [];
const person = { name: 'John Doe', age: 32 };
isArrayEmpty(myEmptyArray); // => true
isObjectEmpty(person); // => falseContributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Changelog
This project adheres to Semantic Versioning. Every release, along with the migration instructions, is documented on the Github Releases page.
Bugs and Sugestions
Report bugs or do suggestions using the issues.
License
On this page
Languages
JavaScript100.0%
Contributors
Latest Release
v0.1.0December 11, 2019MIT License
Created December 11, 2019
Updated May 22, 2023