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

Method findMax

deps/v8/tools/splaytree.mjs:145–152  ·  view source on GitHub ↗

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

(opt_startNode)

Source from the content-addressed store, hash-verified

143 * @return {SplayTreeNode} Node having the maximum key value.
144 */
145 findMax(opt_startNode) {
146 if (this.isEmpty()) return null;
147 let current = opt_startNode || this.root_;
148 while (current.right !== null) {
149 current = current.right;
150 }
151 return current;
152 }
153
154 /**
155 * @return {SplayTreeNode} Node having the maximum key value that

Callers 3

findGreatestLessThanMethod · 0.95
findAddressMethod · 0.80
splaytree.mjsFile · 0.80

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected