line_push/node_modules/is-obj
2022-07-17 13:16:16 +08:00
..
index.d.ts add file 2022-07-17 13:16:16 +08:00
index.js add file 2022-07-17 13:16:16 +08:00
license add file 2022-07-17 13:16:16 +08:00
package.json add file 2022-07-17 13:16:16 +08:00
readme.md add file 2022-07-17 13:16:16 +08:00

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

Usage

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

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

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

isObject('foo');
//=> false
  • is - Type check values

License

MIT © Sindre Sorhus