MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / isURL

Function isURL

src/utils.ts:123–125  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

121}
122
123export function isURL(value: any): boolean {
124 return typeof value === "string" && /^(http|https)/.test(value);
125}
126
127export function randomChoice<T>(arr: T[]): T | undefined {
128 if (!arr || arr.length === 0) return undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected