clonenode

deep DOM node clone

npm install clonenode
3 downloads in the last week
22 downloads in the last month
npm install clodeNode

module.exports = deepClone

function deepClone(el){

    var node = el.cloneNode();

    Array.prototype.slice.call(el.childNodes).forEach(function(child){
      node.appendChild(deepClone(child))    
    });

    return node

}
npm loves you