优化
This commit is contained in:
7
client/packages/design/components/utils.ts
Normal file
7
client/packages/design/components/utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* 是否一个可用的字符串
|
||||
* 定义为有长度的字符串
|
||||
*/
|
||||
export function isValidStr(str: unknown): str is string {
|
||||
return typeof str == 'string' && str !== '';
|
||||
}
|
||||
Reference in New Issue
Block a user