I do not agree that iterating through collection could be error prone since we’re having tools like…
Rafał Łyczkowski
1

Arrays are just objects under the hood in JS, there’s no performance penalty or gain by using this approach, other than the O(1) lookup time for any column using the indexes you’ve built. What do you mean by “you will be filtering the store anyways”? The whole point of this approach is that if you set it up properly you’ll never have to filter to get individual items.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.