is-obj (1.0.1)

Published 2026-02-24 13:58:31 +00:00 by atheaadmin

Installation

registry=
npm install is-obj@1.0.1
"is-obj": "1.0.1"

About this package

is-obj Build Status

Check if a value is an object

Keep in mind that array, function, regexp, etc, are objects in JavaScript.
See is-plain-obj if you want to check for plain objects.

Install

$ npm install --save is-obj

Usage

const isObj = require('is-obj');

isObj({foo: 'bar'});
//=> true

isObj([1, 2, 3]);
//=> true

isObj('foo');
//=> false

License

MIT © Sindre Sorhus

Dependencies

Development Dependencies

ID Version
ava *
xo *

Keywords

obj object is check test type
Details
npm
2026-02-24 13:58:31 +00:00
1
Sindre Sorhus
MIT
latest
1.5 KiB
Assets (1)
Versions (1) View all
1.0.1 2026-02-24