(text: string)
| 193 | |
| 194 | /** Which avoided words a piece of visible text contains. Empty is the passing answer. */ |
| 195 | export function avoidedWordsIn(text: string): string[] { |
| 196 | const lower = text.toLowerCase(); |
| 197 | return AVOIDED_WORDS.filter((word) => lower.includes(word)); |
| 198 | } |
no outgoing calls
no test coverage detected