Home > hzb-utils-box > is_object
is_object() function
该函数检查给定值是否是对象而不是数组。
Signature:
typescript
declare function is_object(o: any): o is Exclude<object, Array<any>>;
declare function is_object(o: any): o is Exclude<object, Array<any>>;
Parameters
Parameter | Type | Description |
---|---|---|
o | any | 参数“o”的类型为“any”,这意味着它可以是任何数据类型。 |
Returns:
o is Exclude<object, Array<any>>
一个布尔值。