const toggleClass = (node, className) => (state) => (state ? node.classList.add : node.classList.remove)(className);
// set classes from an object {cls: <non falsy value>, cls2: undefined}
const setClasses = (node, classset) => Object.entries(classset).forEach(([k, v]) => node.classList[v ? 'add' : 'remove'](k));
export const classSink = (node) => {
    const cl = node.classList;
    return (name) => typeof name == 'string'
        ? cl.add(name)
        : Object.entries(name)
            .forEach(([k, v]) => v ? cl.add(k) : cl.remove(k));
};
