• Remove the elements from their parent nodes.

    This will materialize elements unless lazy is supplied and its value is truthy.

    Parameters

    • elements: Iterable<Node>
    • Optional lazy: boolean

    Returns Iterable<Node>

    Example

    import { update } from 'deleight/queryoperator';
    const main = document.querySelector('main');
    remoove(main.children);