Private
#rootThe tree's root.
Static
leavesThe key symbol that stores the leaves of any given node.
Traverse the tree along the given string path and return any entries reachable from the node.
The string path to the desired node.
Optional
options: { The maximum number of items to retrieve.
A filter function to apply to each candidate entry.
Returns the node at the given path through the tree.
The string path to the desired node.
Optional
options: { Only return the most recently visited node that has leaves, otherwise return the exact node at the prefix, if it exists.
Protected
_breadthProtected
Perform a breadth-first search starting from the given node and retrieving any entries reachable from that node, until we reach the limit.
The starting node.
The accumulated entries.
The working queue of nodes to search.
Optional
options: { The maximum number of entries to retrieve before stopping.
A filter function to apply to each candidate entry.
Private
#create
A data structure representing a tree of string nodes with arbitrary object leaves.