(name: string, from: Classification['subjectFrom'])
| 323 | const out: { name: string; from: Classification['subjectFrom'] }[] = []; |
| 324 | const seen = new Set<string>(); |
| 325 | const push = (name: string, from: Classification['subjectFrom']): void => { |
| 326 | if (!seen.has(name)) { |
| 327 | seen.add(name); |
| 328 | out.push({ name, from }); |
| 329 | } |
| 330 | }; |
| 331 | for (const name of mentionsIn(question)) { |
| 332 | push(name, 'mention'); |
| 333 | } |
no test coverage detected