code: function findPath(value, node) {
      var e_2, _a;
      if (value === node.value)
          return [node];
      try {
          for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(node.children), _c = _b.next(); !_c.done; _c = _b.next()) {
              var child = _c.value;
              var path = findPath(value, child);
              if (path.length) {
                  path.unshift(node);
                  return path;
              }
          }
      }
      catch (e_2_1) { e_2 = { error: e_2_1 }; }
      finally {
          try {
              if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
          }
          finally { if (e_2) throw e_2.error; }
      }
      return [];
  }
docs: Return the path to the node with the given value using DFS