UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

85 lines (39 loc) 1.02 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Tree](./rc-js-util._tree.md) ## \_Tree class Utilities that apply to tree like structures. **Signature:** ```typescript export declare class _Tree ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [collect](./rc-js-util._tree.collect.md) </td><td> `static` `readonly` </td><td> typeof treeCollect </td><td> Similar to a reducer, but without the return requirement. It otherwise behaves like [treeIterate()](./rc-js-util.treeiterate.md)<!-- -->. </td></tr> <tr><td> [iterate](./rc-js-util._tree.iterate.md) </td><td> `static` `readonly` </td><td> typeof treeIterate </td><td> Iterates over the whole tree, in a depth first fashion. </td></tr> </tbody></table>