• Set specified properties and/or attributes on the specified elements. Please do not pass the same 'generator' multiple times in values. First convert them to arrays.

    Parameters

    • elements: Iterable<Element | CSSRule>
    • values: SetMap

    Returns void

    Example

    // Shuffle the class attributes of all the children of the first main element:
    import {apply} from 'appliance'
    import {set} from 'domitory'
    import {uItems} from 'generational'
    apply({main: main => set(main.children, {_class: uItems(main.children.map(c => c.className))})})