flattenBy

external fun <TNode> flattenBy(arr: ReadonlyArray<TNode>, getChildren: (item: TNode) -> ReadonlyArray<TNode>): ReadonlyArray<TNode>(source)