Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.82 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.82 KB

is-object Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Checks whether a value is an object

Because typeof null is a troll.

Example

var isObject = require('is-object');
var assert = require('assert');

assert.equal(isObject(null), false);
assert.equal(isObject({}), true);

Installation

npm install is-object

Contributors

MIT Licensed