(
callback: (memo: M, cur: TreeNode, i: number) => M,
initialValue: M,
)
| 160 | } |
| 161 | |
| 162 | reduce<M>( |
| 163 | callback: (memo: M, cur: TreeNode, i: number) => M, |
| 164 | initialValue: M, |
| 165 | ): M { |
| 166 | return this.children.reduce<M>(callback, initialValue); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Use the `block` to replace the current block(this) |
no outgoing calls
no test coverage detected