Guest User

Untitled

a guest
Nov 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         function removeNodeType(node) {
  2.             node.forEach(function(item) {
  3.                 if (item.children) removeNodeType(item.children)
  4.                 delete item.nodeType;
  5.             })
  6.         }
Add Comment
Please, Sign In to add comment