JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[FEAT] Query iterator methods #76

Closed JaimeGensler closed 9 months ago

JaimeGensler commented 10 months ago

Describe the problem this feature solves

Definitely want to introduce a reduce() method for queries. Maybe we just do map()and forEach() while we're at it? Writing the iteration is less boiler-platey these days