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

Method findMin

deps/v8/tools/splaytree.mjs:133–140  ·  view source on GitHub ↗

* @return {SplayTreeNode} Node having the minimum key value.

()

Source from the content-addressed store, hash-verified

131 * @return {SplayTreeNode} Node having the minimum key value.
132 */
133 findMin() {
134 if (this.isEmpty()) return null;
135 let current = this.root_;
136 while (current.left !== null) {
137 current = current.left;
138 }
139 return current;
140 }
141
142 /**
143 * @return {SplayTreeNode} Node having the maximum key value.

Callers 2

findAddressMethod · 0.80
splaytree.mjsFile · 0.80

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected