https://github.com/fabiospampinato/plain-object-is-empty
Extremely fast function that checks if a plain object is empty.
https://github.com/fabiospampinato/plain-object-is-empty
empty fast object plain
Last synced: 6 months ago
JSON representation
Extremely fast function that checks if a plain object is empty.
- Host: GitHub
- URL: https://github.com/fabiospampinato/plain-object-is-empty
- Owner: fabiospampinato
- License: mit
- Created: 2020-02-08T14:13:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:50.000Z (over 1 year ago)
- Last Synced: 2024-11-29T21:19:46.721Z (6 months ago)
- Topics: empty, fast, object, plain
- Language: JavaScript
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Plain Object Is Empty
Extremely fast function that checks if a plain object is empty.
## Install
```sh
npm install --save plain-object-is-empty
```## Usage
```ts
import isEmpty from 'plain-object-is-empty';isEmpty ({}); // => true
isEmpty ({ foo: true }); // => false
```## License
MIT © Fabio Spampinato