MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / stringifySet

Function stringifySet

shared/src/utility.ts:78–80  ·  view source on GitHub ↗
(set: Set<unknown> | ReadonlySet<unknown>)

Source from the content-addressed store, hash-verified

76
77// highTODO property test
78export function stringifySet(set: Set<unknown> | ReadonlySet<unknown>) {
79 return JSON.stringify([...set])
80}
81
82export function parseSet<T>(rawSet: string) {
83 const parsed = JSON.parse(rawSet) as T[]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected