is-js-obj-empty

1.0.2 • Public • Published

is-js-obj-empty

checks the given js object is empty

Build StatusCode Coverage 100%ISC License

API

var isEmpty = require('is-js-obj-empty')

isEmpty(JS Object)

Usage

var isEmpty = require('is-js-obj-empty');
 
var obj1 = {text: 'Hello World!'};
var obj2 = {};
 
var empty1 = isEmpty(obj1);// should return false
var empty1 = isEmpty(obj2);// should return true

Development

this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit

to run test

npm test

to run jshint

npm run jshint

to run code style

npm run code-style

to run check code coverage

npm run check-coverage

to open the code coverage report

npm run open-coverage

Readme

Keywords

Package Sidebar

Install

npm i is-js-obj-empty

Weekly Downloads

15

Version

1.0.2

License

ISC

Last publish

Collaborators

  • quim