This is a collection of functions for working with tree structures built from maps: instances of the standard Map class, the asynchronous AsyncMap variation, or map-like objects.
Add next/previous fields to the map’s values
Apply key/values from source to target
Tree.cache(tree, [cache])
Caches values from the tree
Return a tree structure for years/months/days
Returns the indicated child node, creating it if necessary
Remove all values from the map
Return a deep tree with a single constant value
Map the keys and values of a deep tree
Return a deeply-merged tree
Reverse order of keys at all levels of the tree
The first n values from the deep tree
The text values of the deep tree
The in-order leaf values of the tree
Delete the value for the key from map
The map’s [key, value] pairs
Filter a tree by a condition
The first value in the map
Apply fn to each (value, key)
Tree.from(object, options)
Create a map from an object
A tree whose keys can include glob wildcard patterns
A new map with values grouped by the function
True if key exists in map
Tagged template literal for normalizing indentation
The tree’s interior nodes
Getting a map value invokes it if it’s a function
True if object is a map
True if object can be coerced to a tree
True if object is a read-only map
True if object is traversable
Render the tree in JSON format
The keys of the map
Tree.map(source, options)
Create a new map by transforming keys and/or values
Create a new map by transforming extensions
Map the keys and/or values in a tree and reduce them
Return the source tree with only the keys in the mask
Tree.match(pattern, fn, [keys])
Matches simple patterns or regular expressions
Return a new tree merging the given maps
Group the map’s values into fixed-size sets
The parent of the given tree node
Slash-separated paths for the tree’s values
Render the tree as a plain JavaScript object
Reduce the tree to a single value
A tree whose keys are regular expression strings
Reverse the order of the map’s keys
The root node of the given tree
A merged view of the tree and its ancestors
Tree.set(map, key, value)
Set the value for the key in the map
Shuffle the keys of the map
The map’s size (number of keys)
A new map with its keys sorted
Awaits all asynchronous values in the tree
The first n values in the map
Tagged template literal for rendering trees
Return the value at the path of keys
Return the value at the path of keys or throw
Traverse a slash-separated path
The map’s values
Use the given keys for the map