Skip to content

@longmo-utils/common / isString

Function: isString()

ts
function isString(arg): boolean;

是否是字符串

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isString(123) // false
isString("abc") // true
isString(String(1)) // true

Released under the MIT License.