@skybloxsystems/ticket-bot
Version:
40 lines (22 loc) • 727 B
Markdown
if a value is an object
Keep in mind that array, function, regexp, etc, are objects in JavaScript.<br>
See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects.
```
$ npm install is-obj
```
```js
const isObject = require('is-obj');
isObject({foo: 'bar'});
//=> true
isObject([1, 2, 3]);
//=> true
isObject('foo');
//=> false
```
- [is](https://github.com/sindresorhus/is) - Type check values
MIT © [Sindre Sorhus](https://sindresorhus.com)
> Check