Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📭 Basic Empty Checker Library

License

NotificationsYou must be signed in to change notification settings

codevor/js-is-empty

Repository files navigation

LicenseTravis CICoverage StatusCommitizen

📭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';constmyEmptyArray=[];constperson={name:'John Doe',age:32};isArrayEmpty(myEmptyArray);// => trueisObjectEmpty(person);// => false

With require

constjsIsEmpty=require('@codevor/js-is-empty');constisArrayEmpty=jsIsEmpty.isArrayEmpty;constisObjectEmpty=jsIsEmpty.isObjectEmpty;constmyEmptyArray=[];constperson={name:'John Doe',age:32};isArrayEmpty(myEmptyArray);// => trueisObjectEmpty(person);// => false

Contributing

Please readCONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Changelog

This project adheres toSemantic Versioning. Every release, along with the migration instructions, is documented on the GithubReleases page.

Bugs and Sugestions

Report bugs or do suggestions using theissues.

License

MIT License ©Codevor

About

📭 Basic Empty Checker Library

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp