RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Removes the node and keep all children in place, return the parentNode where the children are attached
 * @param node the node to remove
 */
Removes the node and keep all children in place, return the parentNode where the children are attached
@param node the node to remove
Removes the node and keep all children in place return the parentNode where the children are attached @param node the node to remove
function unwrap(node) {
    var parentNode = node ? node.parentNode : null;
    if (!parentNode) {
        return null;
    }
    while (node.firstChild) {
        parentNode.insertBefore(node.firstChild, node);
    }
    parentNode.removeChild(node);
    return parentNode;
}
function unwrap ( node ) { var parentNode = node ? node . parentNode : null ; if ( ! parentNode ) { return null ; } while ( node . firstChild ) { parentNode . insertBefore ( node . firstChild , node ) ; } parentNode . removeChild ( node ) ; return parentNode ; }
Removes the node and keep all children in place, return the parentNode where the children are attached
 @param node the node to remove
Removes the node and keep all children in place return the parentNode where the children are attached @param node the node to remove
// Unwrap requires a parentNode