UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

1 lines 398 B
!/*! License details at fancyapps.com/license */function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";e.toggleClass=(e,o="",t)=>{e&&e.classList&&o.split(" ").forEach(o=>{o&&e.classList.toggle(o,t||!1)})}});