OCA_Backend/api/node_modules/is-obj
2022-01-22 19:06:44 +05:30
..
index.d.ts service,offer 2022-01-22 19:06:44 +05:30
index.js service,offer 2022-01-22 19:06:44 +05:30
license service,offer 2022-01-22 19:06:44 +05:30
package.json service,offer 2022-01-22 19:06:44 +05:30
readme.md service,offer 2022-01-22 19:06:44 +05:30

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