MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / addClass

Method addClass

frontend/src/ts/utils/dom.ts:975–980  ·  view source on GitHub ↗

* Add a class to all elements in the array

(className: string | string[])

Source from the content-addressed store, hash-verified

973 * Add a class to all elements in the array
974 */
975 addClass(className: string | string[]): this {
976 for (const item of this) {
977 item.addClass(className);
978 }
979 return this;
980 }
981
982 /**
983 * Set innerHTML of all elements in the array

Callers

nothing calls this directly

Calls 1

addClassMethod · 0.45

Tested by

no test coverage detected