Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-is-object-empty
Check to see if an object is empty (has or does not have keys)
https://github.com/wankdanker/node-is-object-empty
Last synced: 14 days ago
JSON representation
Check to see if an object is empty (has or does not have keys)
- Host: GitHub
- URL: https://github.com/wankdanker/node-is-object-empty
- Owner: wankdanker
- Created: 2014-09-29T15:32:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T19:12:02.000Z (over 7 years ago)
- Last Synced: 2024-12-06T06:16:38.058Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
is-object-empty
---------------[![Build Status](https://travis-ci.org/wankdanker/node-is-object-empty.svg)](https://travis-ci.org/wankdanker/node-is-object-empty)
Check to see if an object is empty (has no keys)
[jsperf](http://jsperf.com/check-if-object-is-empty)
install
-------```bash
npm install is-object-empty
```usage
-----```js
var isObjectEmpty = require('is-object-empty');var obj = {};
if (isObjectEmpty(obj)) {
console.log('yup, it is empty');
}
else {
console.log('nope, it is not empty');
}
```license
-------MIT