function removeElement(elem) {
    if (elem.prev)
        elem.prev.next = elem.next;
    if (elem.next)
        elem.next.prev = elem.prev;
    if (elem.parent) {
        const childs = elem.parent.children;
        childs.splice(childs.lastIndexOf(elem), 1);
    }
}
/**
 * Remove an element from the dom
 *
 * @category Manipulation
 * @param elem The element to be removed
 */
Remove an element from the dom
@category Manipulation
@param elem The element to be removed
Remove an element from the dom @category Manipulation @param elem The element to be removed
function removeElement(elem) {
    if (elem.prev)
        elem.prev.next = elem.next;
    if (elem.next)
        elem.next.prev = elem.prev;
    if (elem.parent) {
        const childs = elem.parent.children;
        childs.splice(childs.lastIndexOf(elem), 1);
    }
}
function removeElement ( elem ) { if ( elem . prev ) elem . prev . next = elem . next ; if ( elem . next ) elem . next . prev = elem . prev ; if ( elem . parent ) { const childs = elem . parent . children ; childs . splice ( childs . lastIndexOf ( elem ) , 1 ) ; } }
Remove an element from the dom
 @category Manipulation
 @param elem The element to be removed
Remove an element from the dom @category Manipulation @param elem The element to be removed