1.2.2 • Published 10 years ago
is-js-object v1.2.2
is-js-object
checks the given value is a js object
Usage
var isJsObject = require('is-js-object');
var obj1 = {text: 'Hello World!'};
var obj2 = null;
isJsObject(obj1);// should return true
isJsObject(obj2);// should return falseDevelopment
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 testto run jshint
npm run jshintto run code style
npm run code-styleto run check code coverage
npm run check-coverageto open the code coverage report
npm run open-coverage