Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 319 Bytes

readme.md

File metadata and controls

22 lines (14 loc) · 319 Bytes

Plain Object Is Empty

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

Install

npm install --save plain-object-is-empty

Usage

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

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

License

MIT © Fabio Spampinato