Is there any better possibility to replace forEach() in the following example with map() / pipe() whatever also possible?
processEntities(entities: IEntity[]