Check if an object is empty.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitattributes
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

is-empty-object

NPM version License Build status

Check if an object is empty.

Installation

npm install is-empty-object

Usage

var isEmptyObject = require('is-empty-object')

isEmptyObject({})         // => true
isEmptyObject({ one: 1 }) // => false
isEmptyObject([])         // => false