Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method BinarySearchTree.prototype.insert
Re-export
import { BinarySearchTree } from "https://deno.land/std@0.216.0/data_structures/mod.ts";

Adds the value to the binary search tree if it does not already exist in it. Returns true if successful.

Parameters

value: T

Returns

boolean