Check out the JS library at —

Quick Tree is a JS library that can help you build an M-ary Tree and perform operations on it.

While working on an optimization effort for a legacy project, I struggled to find a JS library which was general and fast enough that could model a tree, so I wrote this small library as part of those enhancements.

Using this library, you can model a file system, traced hierarchical tasks, and all the binary tree applications.

Talking of Scale: Our trees ranged ~ 40k–50k nodes.

Image for post
Image for post

Do note that the tree can be highly unbalanced, and we don’t want to change its structure because of hierarchical relations between the nodes. …


Pranav Sharma

I am a software developer with some skills spread out to soccer, boxing and badminton.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store