pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/codevor/js-is-empty

adf21fe337.css" /> GitHub - codevor/js-is-empty: 📭 Basic Empty Checker Library
Skip to content

codevor/js-is-empty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📭Empty Checker

License Travis CI Coverage Status Commitizen

📭js-is-empty makes your empty checks for you. We have empty checks for

  • Array
  • Object
  • String

Installation

js-is-empty is available on npm/yarn:

$ npm install @codevor/js-is-empty --save
$ yarn add @codevor/js-is-empty

Usage

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); // => false

With 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); // => false

Contributing

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

MIT License © Codevor

About

📭 Basic Empty Checker Library

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy