DEV Community

Discussion on: Why to use Maps over Objects in JS ?

Collapse
 
faisalpathan profile image
faisal khan

Thanks @blackr1234 , yup i will try and include the performance specific point as well.

Whenever i have to render items and want to do a lookup to a variable to get an idea about what states need to render, i usually start with using array's and then gradually move to either objects or maps depending upon the use-case(this always happens post profiling session).

Some comments have been hidden by the post's author - find out more