Skip to content

Checks whether a value is an object, because typeof is a troll

License

Notifications You must be signed in to change notification settings

inspect-js/is-object

Repository files navigation

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

About

Checks whether a value is an object, because typeof is a troll

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 3

  •  
  •  
  •