linwenling
2023-09-25 4818a96301063bfea4a5d01bb475721a9de54bff
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;