clonenode
v0.0.2
Published
deep DOM node clone
Downloads
2
Readme
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
}