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
}
clonenode
0.0.2 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i clonenode
Repository
Homepage
Weekly Downloads
0
Version
0.0.2
License
MIT