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

is-object Version Badge

build status dependency status dev dependency status License Downloads

npm badge

browser support

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.1                                ...           latest (6 years ago)

3 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.2                                ...           7 years ago
Maintainers (1)
Downloads
Today 3,121
This Week 52,361
This Month 86,725
Last Day 3,905
Last Week 52,187
Last Month 220,111
Dependencies (0)
None
Dev Dependencies (3)
Dependents (185)

Copyright 2014 - 2016 © taobao.org |