Skip to content

joaquimserafim/is-js-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-js-object

checks the given value is a js object

Build StatusCode Coverage 100%ISC License

Usage

var isJsObject = require('is-js-object');

var obj1 = {text: 'Hello World!'};
var obj2 = null;

isJsObject(obj1);// should return true
isJsObject(obj2);// should return false

Development

this project 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