Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codevor/js-is-empty

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codevor/js-is-empty

📭Basic empty checker

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

📭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

Keywords

FAQs

Package last updated on 12 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc