MCPcopy Create free account
hub / github.com/denoland/std / find

Method find

data_structures/binary_search_tree.ts:487–489  ·  view source on GitHub ↗

* Check if a value exists in the binary search tree. * * The complexity of this operation depends on the underlying structure of the * tree. Refer to the documentation of the structure itself for more details. * * @example Finding values in the tree * ```ts * import { BinarySear

(value: T)

Source from the content-addressed store, hash-verified

485 * @returns The value if it was found, or null if not found.
486 */
487 find(value: T): T | null {
488 return this.#findNode(value)?.value ?? null;
489 }
490
491 /**
492 * Retrieve the lowest (left most) value in the binary search tree, or null if

Callers

nothing calls this directly

Calls 1

#findNodeMethod · 0.95

Tested by

no test coverage detected