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

2.0.1 • Public • Published

Plain Object Is Empty

Extremely fast function that checks if a plain object is empty.

Install

npm install plain-object-is-empty

Usage

import isEmpty from 'plain-object-is-empty';

// Let's check if an object is empty

isEmpty ({}); // => true
isEmpty ({ foo: true }); // => false

License

MIT © Fabio Spampinato

Readme

Keywords

Package Sidebar

Install

npm i plain-object-is-empty

Weekly Downloads

289

Version

2.0.1

License

MIT

Unpacked Size

2.62 kB

Total Files

5

Last publish

Collaborators

  • fabiospampinato