Skip to content

Home > @jview/utils > isString

isString() function

是否是字符串类型

Signature:

typescript
export declare function isString(val: unknown): val is string;
export declare function isString(val: unknown): val is string;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is string