MCPcopy Create free account
hub / github.com/chunshand/qdev / isString

Function isString

admin/src/utils/validate.ts:7–9  ·  view source on GitHub ↗
(str: unknown)

Source from the content-addressed store, hash-verified

5
6/** 判断是否为字符串 */
7export const isString = (str: unknown) => {
8 return typeof str === "string" || str instanceof String
9}
10
11/** 判断是否为外链 */
12export const isExternal = (path: string) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected