Skip to content

UseIsObject

katanakit-js / useIsObject

function useIsObject(item): item is Record<string, unknown>;

Defined in: core/services/utils.service.ts:461

Type guard that checks whether a value is a plain object (not null, not an array).

Parameter Type
item unknown

item is Record<string, unknown>

useIsObject({ a: 1 }); // true