RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Move all children from one node to another
 * @param fromNode The source node to move children from
 * @param toNode Target node. If not passed, children nodes of source node will be removed
 */
Move all children from one node to another
@param fromNode The source node to move children from
@param toNode Target node. If not passed, children nodes of source node will be removed
Move all children from one node to another @param fromNode The source node to move children from @param toNode Target node . If not passed children nodes of source node will be removed
function moveChildren(fromNode, toNode) {
    while (fromNode.firstChild) {
        if (toNode) {
            toNode.appendChild(fromNode.firstChild);
        }
        else {
            fromNode.removeChild(fromNode.firstChild);
        }
    }
}
function moveChildren ( fromNode , toNode ) { while ( fromNode . firstChild ) { if ( toNode ) { toNode . appendChild ( fromNode . firstChild ) ; } else { fromNode . removeChild ( fromNode . firstChild ) ; } } }
Move all children from one node to another
 @param fromNode The source node to move children from
 @param toNode Target node.
Move all children from one node to another @param fromNode The source node to move children from @param toNode Target node .