Hacker News new | ask | show | jobs
by thaunatos 1632 days ago
Consider a parent -> child relation. You have an array `parents`, but want all their children.

    parents.flatMap(parent => parent.children)