object-is-empty
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Is-object-empty

Checks if a given object has non-zero number of enumerable properties or not.

Install

$ npm install is-object-empty

Usage

const isObjectEmpty = require("is-object-empty");

const a = { name: "Pegasus", age: 14 };
const b = {};

console.log(isObjectEmpty(a));
//=> false

console.log(isObjectEmpty(b));
//=> true

Package Sidebar

Install

npm i object-is-empty

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.4 kB

Total Files

4

Last publish

Collaborators

  • edydee