Home > @dinofe/xt-core > isString

# isString() function

是否为字符串

Signature:

export declare function isString(a: any): boolean;

# Parameters

Parameter Type Description
a any 待校验的数据

Returns:

boolean

判断结果

# Example

import { isString } from '@dinofe/xt-core/common'
isString('foo') // true
isString({}) // false