Why you should use an object, and not an array, for lists in Redux

The same also applies to any state management tool

Llorenç Muntaner
May 19, 2019 · 4 min read

If you are working on an application, chances are that you are using a list of items: users, comments, posts, todos, movies etc.

The most common data structure to choose for lists in Javascript is an array.

Already have an account? Sign in

Thanks to Tià

Llorenç Muntaner

Written by

Javascript Instructor. New course at introtoweb.dev

JavaScript in Plain English

Learn the web's most important programming language.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade