is-object
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-object package

    1.0.2 • Public • Published

    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

    Keywords

    none

    Install

    npm i is-object

    DownloadsWeekly Downloads

    4,823,144

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    18.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • ljharb
    • raynos