* Fix workflow * Trigger * [auto] Update compiled version * [auto] Commit modules * Push Windows changes * Fix * [auto] Update compiled version * Try removing cwd * [auto] Update compiled version * Try with path module * [auto] Update compiled version * Fix path * [auto] Update compiled version * Use raw path * [auto] Update compiled version * Other path * [auto] Update compiled version * Avoid @action/exec * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * Try with shelljs * [auto] Update compiled version * Fix my stupidity * Copy scripts to local dir * [auto] Update compiled version * Still use path * [auto] Update compiled version * Delete entrypoint.sh * [auto] Update compiled version * Make file executable * [auto] Update compiled version * Try using bash * [auto] Update compiled version
35 lines
606 B
Markdown
35 lines
606 B
Markdown
# is-obj [](https://travis-ci.org/sindresorhus/is-obj)
|
|
|
|
> Check 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.
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save is-obj
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const isObj = require('is-obj');
|
|
|
|
isObj({foo: 'bar'});
|
|
//=> true
|
|
|
|
isObj([1, 2, 3]);
|
|
//=> true
|
|
|
|
isObj('foo');
|
|
//=> false
|
|
```
|
|
|
|
|
|
## License
|
|
|
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|