--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
34
node_modules/is-obj/readme.md
generated
vendored
Normal file
34
node_modules/is-obj/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# 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)
|
||||
Loading…
Reference in a new issue