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