MCPcopy
hub / github.com/nodejs/undici / insert

Method insert

lib/core/tree.js:133–139  ·  view source on GitHub ↗

* @param {string} key * @param {any} value * @returns {void} *

(key, value)

Source from the content-addressed store, hash-verified

131 * @returns {void}
132 * */
133 insert (key, value) {
134 if (this.node === null) {
135 this.node = new TstNode(key, value, 0)
136 } else {
137 this.node.add(key, value)
138 }
139 }
140
141 /**
142 * @param {Uint8Array} key

Callers 2

tree.jsFile · 0.80
tree.jsFile · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected