Appearance
Function: isObject()
ts
function isObject(value: any): value is Record<string, any>;Defined in: src/utils/isObject.ts:14
Check if a value is an object.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | The value to check. |
Returns
value is Record<string, any>
true if the value is a non-null object, false otherwise.
Example
ts
isObject({ name: 'latte' }); // true
isObject(null); // false
isObject('hello'); // false