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 
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