How many items share each ID. Look a count up with .Get(id) ?? 0; any casing works.
.Get(id) ?? 0
const perEntity = CountByUUID(relationships, r => r.RelatedEntityID);const shared = (perEntity.Get(rel.RelatedEntityID) ?? 0) > 1; Copy
const perEntity = CountByUUID(relationships, r => r.RelatedEntityID);const shared = (perEntity.Get(rel.RelatedEntityID) ?? 0) > 1;
How many items share each ID. Look a count up with
.Get(id) ?? 0; any casing works.