What is better for efficiency - keeping it an array of objects, or using a Map to easily access objects with a long human readable string as an index, such as a url?
If Map isnt better, why? The string gets converted to many numbers behind the scenes, and not directly to a number that represent the place of that object in the array?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Reactiflux
The best chat community for professionals using React or React Native