MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / removeClassesWithPrefix

Function removeClassesWithPrefix

src/ui/taskCardCompletionState.ts:89–95  ·  view source on GitHub ↗
(element: HTMLElement, prefix: string)

Source from the content-addressed store, hash-verified

87}
88
89function removeClassesWithPrefix(element: HTMLElement, prefix: string): void {
90 for (const className of Array.from(element.classList)) {
91 if (className.startsWith(prefix)) {
92 element.classList.remove(className);
93 }
94 }
95}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected