3 ms·
Consider a parent -> child relation. You have an array `parents`, but want all their children. parents.flatMap(parent => parent.children)
by thaunatos 5y ago
Consider a parent -> child relation. You have an array `parents`, but want all their children.
parents.flatMap(parent => parent.children)