Skip to content

Home > @jview/utils > isObject

isObject() function

是否是对象 object 类型

Signature:

typescript
export declare function isObject<T = Record<any, any>>(val: unknown): val is T;
export declare function isObject<T = Record<any, any>>(val: unknown): val is T;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is T