MCPcopy Create free account
hub / github.com/msgbyte/tailchat / isAvailableString

Function isAvailableString

client/shared/utils/string-helper.ts:8–10  ·  view source on GitHub ↗
(str: unknown)

Source from the content-addressed store, hash-verified

6 * @param str 要判断的字符串
7 */
8export function isAvailableString(str: unknown): boolean {
9 return typeof str === 'string' && str.length > 0;
10}
11
12/**
13 * 判断一个字符串是否是url

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected