Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method RedBlackTree.prototype.insert
import { RedBlackTree } from "https://deno.land/std@0.206.0/collections/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