(prefix: string)
| 60 | let saveTimeout = new Map<string, ReturnType<typeof setTimeout>>(); |
| 61 | |
| 62 | function generateId(prefix: string): string { |
| 63 | return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`; |
| 64 | } |
| 65 | |
| 66 | function cosine(a: number[], b: number[]): number { |
| 67 | const len = Math.min(a.length, b.length); |
no outgoing calls
no test coverage detected