Transitioning from C++ into web development and am curious about BST and data structures in general in AngularJS.
I would like to create a BST with a breadth-first search option. In C++, I'd create a node with a left and right pointer. Then use a queue to enqueue the root node, see if matches the desired value and if it does not, push the child elements and dequeue the root.
I am not really sure where to begin with this in JavaScript AngularJS, as there are no structs or pointers. When performing an $http.get() in AngularJS, I would like to store the data in a BST and search for items with BFS.
Can anyone suggest a starting place? Would using pure JavaScript to create a custom data structure be preferable?
Edit: changed "node" to "struct;" edited question header "AngularJS" to "JavaScript," as I now understand underlying data structures would be built in the base language and not the framework.