is-object
Checks whether a value is an object
Last updated 4 years ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-object 
SYNC missed versions from official npm registry.

is-object Version Badge

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

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

4 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.2                                ...           12 years ago
Maintainers (2)
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)

© 2010 - cnpmjs.org x YWFE | Home | YWFE