(id: string | undefined | null)
| 20 | const listeners = new Set<RegistryEventListener>(); |
| 21 | |
| 22 | function toKey(id: string | undefined | null): string { |
| 23 | return String(id ?? "") |
| 24 | .trim() |
| 25 | .toLowerCase(); |
| 26 | } |
| 27 | |
| 28 | function clone<T>(value: T): T | undefined { |
| 29 | if (!value || typeof value !== "object") return undefined; |
no test coverage detected