Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

dl mindmap

a guest Aug 28th, 2018 17 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function getTree(node = DYNALIST.app.app_document.ui.current_root, data = []) {
  2.   if (node.index === -1 || node.get_meta_object().get_content() === '' || !node.has_children()) {
  3.     return
  4.   }
  5.   for (let child of node.get_children().children) {
  6.     if (child.get_meta_object().get_content() !== '') {
  7.       data.push(node.get_meta_object().get_content() + '->' + child.get_meta_object().get_content())
  8.       getTree(child, data)
  9.     }
  10.   }
  11.   return data
  12. }
  13. console.log(getTree().join('\n'))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top