Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
thaunatos
· 4y ago · 0 comments
Consider a parent -> child relation. You have an array `parents`, but want all their children.
parents.flatMap(parent => parent.children)
Comments
No comments yet.
Better HN