Function: isObject()
ts
function isObject(value: unknown): value is { [key: string]: unknown };Type guard to check if a value is a plain object (not null, not array)
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
value is { [key: string]: unknown }
True if the value is a plain object, false otherwise