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

Method find

deps/v8/tools/splaytree.mjs:124–128  ·  view source on GitHub ↗

* Returns the node having the specified key or null if the tree doesn't contain * a node with the specified key. * * @param {number} key Key to find in the tree. * @return {SplayTreeNode} Node having the specified key.

(key)

Source from the content-addressed store, hash-verified

122 * @return {SplayTreeNode} Node having the specified key.
123 */
124 find(key) {
125 if (this.isEmpty()) return null;
126 this.splay_(key);
127 return this.root_.key == key ? this.root_ : null;
128 }
129
130 /**
131 * @return {SplayTreeNode} Node having the minimum key value.

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.95
splay_Method · 0.95

Tested by

no test coverage detected