File: index.d.ts

package info (click to toggle)
node-is-obj 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: javascript: 52; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (2)
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;