lib/utils/cloneNodeHelper.js
function cloneAnyNode(element, deep) {
    switch (element.nodeType) {
        case _Node2['default'].DOCUMENT_FRAGMENT_NODE:
            return cloneDocumentFragment(element, deep);
        case _Node2['default'].ELEMENT_NODE:
            return cloneElementNode(element, deep);
        case _Node2['default'].TEXT_NODE:
            return cloneTextNode(element);
        default:
            throw new _DOMException2['default'](_DOMException2['default'].DATA_CLONE_ERR);
    }
}
function cloneAnyNode(element, deep) {
    switch (element.nodeType) {
        case _Node2['default'].DOCUMENT_FRAGMENT_NODE:
            return cloneDocumentFragment(element, deep);
        case _Node2['default'].ELEMENT_NODE:
            return cloneElementNode(element, deep);
        case _Node2['default'].TEXT_NODE:
            return cloneTextNode(element);
        default:
            throw new _DOMException2['default'](_DOMException2['default'].DATA_CLONE_ERR);
    }
}
Function return copy of element and if request deep copy of element

@param {ParentNode|Node} element
@param {boolean} deep
@ignore

@function
@param element
@param deep