Skip to content

Instantly share code, notes, and snippets.

daraxdray /
Created November 18, 2019 06:16 — forked from JamieMason/
Group Array of JavaScript Objects by Key or Property Value
daraxdray / binarySearchTree.js
Created November 6, 2022 18:59 — forked from Prottoy2938/binarySearchTree.js
Binary Search Tree implementation in JavaScript
View binarySearchTree.js
// A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.
// Left child is always less than it's parent and the right child is always bigger than it's parent.
class Node {
constructor(value) {
this.value = value;
this.right = null;
this.left = null;