1 | /**
|
2 | Check if a value is an object.
|
3 |
|
4 | Keep in mind that array, function, regexp, etc, are objects in JavaScript.
|
5 |
|
6 | @example
|
7 | ```
|
8 | import isObject from 'is-obj';
|
9 |
|
10 | isObject({foo: 'bar'});
|
11 | //=> true
|
12 |
|
13 | isObject([1, 2, 3]);
|
14 | //=> true
|
15 |
|
16 | isObject('foo');
|
17 | //=> false
|
18 | ```
|
19 | */
|
20 | export default function isObject(value: unknown): value is object; // eslint-disable-line @typescript-eslint/ban-types
|