2.0.1 • Published 5 months ago
plain-object-is-empty v2.0.1
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