This commit is contained in:
qsh
2024-01-25 08:59:04 +08:00
parent 4fd6a21f35
commit 056ca965b3
79 changed files with 8726 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
// @ts-nocheck
/**
* 检查一个值是否为字符串类型
* @param str 要检查的值
* @returns 如果值的类型是字符串类型,则返回 true否则返回 false
*/
export const isString = (str: unknown): str is string => typeof str === 'string';