MCPcopy Index your code
hub / github.com/hizzgdev/jsmind / get_node

Method get_node

src/jsmind.mind.js:35–42  ·  view source on GitHub ↗

* Get a node by id. * @param {string} node_id * @returns {Node | null}

(node_id)

Source from the content-addressed store, hash-verified

33 * @returns {Node | null}
34 */
35 get_node(node_id) {
36 if (node_id in this.nodes) {
37 return this.nodes[node_id];
38 } else {
39 logger.warn('the node[id=' + node_id + '] can not be found');
40 return null;
41 }
42 }
43 /**
44 * Set the root node, only once.
45 * @param {string} node_id

Callers 4

get_node_beforeMethod · 0.95
get_node_afterMethod · 0.95
_move_node_internalMethod · 0.95
_move_nodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected