MCPcopy Index your code
hub / github.com/tinyplex/tinybase / addClass

Function addClass

site/js/common/common.ts:50–51  ·  view source on GitHub ↗
(element: HTMLElement, add: string)

Source from the content-addressed store, hash-verified

48};
49
50export const addClass = (element: HTMLElement, add: string): void =>
51 element.classList.add(add);
52
53export const hasClass = (element: HTMLElement, has: string): boolean =>
54 element.classList.contains(has);

Callers 4

single.tsFile · 0.90
populateResultsFunction · 0.90
moveHoverFunction · 0.90
updateNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…