Glinkis2OP•

Author here!

After working with the flux entity pattern for a while, I've identified some reusable logic that felt like it would be helpful to extract into a small independent library.

Any and all constructive feedback is greatly appreciated.

1
[deleted]•

I'm curious why this is preferable to a map/dictionary:

var enties = {};
entities[id] = {blah:blah}
1
Glinkis2OP•

There is no simple way to loop over a dictionary. You have to use Object.values/keys/entries. And object key order is not guaranteed in JavaScript, sometimes leading to subtle bugs when wanting consistent ordering.

1
[deleted]•

[deleted]

1