MCPcopy Create free account
hub / github.com/tinyplex/tinybase / hasClass

Function hasClass

site/js/common/common.ts:53–54  ·  view source on GitHub ↗
(element: HTMLElement, has: string)

Source from the content-addressed store, hash-verified

51 element.classList.add(add);
52
53export const hasClass = (element: HTMLElement, has: string): boolean =>
54 element.classList.contains(has);
55
56export const delClass = (element: HTMLElement, del: string): void =>
57 element.classList.remove(del);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…