aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-obj/index.d.ts
blob: e8a985a9de68aae106c809c450a788a4c8c64ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
Check if a value is an object.

Keep in mind that array, function, regexp, etc, are objects in JavaScript.

@example
```
import isObject = require('is-obj');

isObject({foo: 'bar'});
//=> true

isObject([1, 2, 3]);
//=> true

isObject('foo');
//=> false
```
*/
declare function isObject(value: unknown): value is object;

export = isObject;