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