Returns an iterable of all the childrens of the given entity.
for (const children of getChildren(parent)) { console.log(children) }
or just => const childrens: Entity[] = Array.from(getChildren(parent))
ponytail: still a scan, and over NetworkParent rather than NetworkEntity —
a one-to-many reverse index is a different structure, and nothing on the
per-message hot path calls this. Upgrade path: a second index keyed by parent
identity, once a caller makes it worth maintaining.
Returns an iterable of all the childrens of the given entity. for (const children of getChildren(parent)) { console.log(children) } or just => const childrens: Entity[] = Array.from(getChildren(parent))
ponytail: still a scan, and over NetworkParent rather than NetworkEntity — a one-to-many reverse index is a different structure, and nothing on the per-message hot path calls this. Upgrade path: a second index keyed by parent identity, once a caller makes it worth maintaining.