MCPcopy Index your code
hub / github.com/nodejs/node / exportKeysAndValues

Method exportKeysAndValues

deps/v8/tools/splaytree.mjs:178–182  ·  view source on GitHub ↗

* @return {Array<*>} An array containing all the values of tree's nodes paired * with keys.

()

Source from the content-addressed store, hash-verified

176 * with keys.
177 */
178 exportKeysAndValues() {
179 const result = [];
180 this.traverse_(function(node) { result.push([node.key, node.value]); });
181 return result;
182 }
183
184 /**
185 * @return {Array<*>} An array containing all the values of tree's nodes.

Calls 2

traverse_Method · 0.95
pushMethod · 0.45

Tested by

no test coverage detected