MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / getStringArray

Function getStringArray

layers/foundation-scan.ts:681–687  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

679}
680
681function getStringArray(value: unknown): string[] | null {
682 if (!Array.isArray(value)) {
683 return null;
684 }
685 const items = value.filter((item): item is string => typeof item === "string");
686 return items;
687}
688
689function isSafeGatewayBind(bind: string | null): boolean {
690 if (!bind) return false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected