MCPcopy
hub / github.com/orestbida/cookieconsent / toggleClass

Function toggleClass

playground/src/modules/disableTransitions.js:35–37  ·  view source on GitHub ↗
(className, enable)

Source from the content-addressed store, hash-verified

33 * @param {boolean} enable
34 */
35const toggleClass = (className, enable) => {
36 document.body.classList[enable ? 'add' : 'remove'](className);
37}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…