• Correctly replace the specified nodes with corresponding values.

    Parameters

    • elements: Iterable<Node>

      The nodes to replace.

    • values: Iterable<Node>

      The replacement nodes.

    Returns void

    Example

    // Safely shuffle all the children of the first main element:
    import {apply} from 'appliance'
    import {update} from 'domitory'
    import {uItems} from 'generational'
    apply({main: main => update(main.children, uItems(main.children))})