function prevElementSibling(elem) {
    var _a;
    var prev = elem.prev;
    while (prev !== null && !(0, domhandler_1.isTag)(prev))
        (_a = prev, prev = _a.prev);
    return prev;
}
/**
 * Returns the previous element sibling of a node.
 *
 * @category Traversal
 * @param elem The element to get the previous sibling of.
 * @returns `elem`'s previous sibling that is a tag.
 */
Returns the previous element sibling of a node.
@category Traversal
@param elem The element to get the previous sibling of.
@returns `elem`'s previous sibling that is a tag.
Returns the previous element sibling of a node . @category Traversal @param elem The element to get the previous sibling of . @returns ` elem ` ' s previous sibling that is a tag .
function prevElementSibling(elem) {
    var _a;
    var prev = elem.prev;
    while (prev !== null && !(0, domhandler_1.isTag)(prev))
        (_a = prev, prev = _a.prev);
    return prev;
}
function prevElementSibling ( elem ) { var _a ; var prev = elem . prev ; while ( prev !== null && ! ( 0 , domhandler_1 . isTag ) ( prev ) ) ( _a = prev , prev = _a . prev ) ; return prev ; }
Returns the previous element sibling of a node.
Returns the previous element sibling of a node .