loading...

re: When You Should Use JavaScript Maps over Objects VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Interesting, nice overview. In most cases where I needed "lookup" I've used objects rather than maps, I guess it's mostly a matter of familiarity ...
 

Yes, there are some performance benefits as compared to objects, for finding, adding, and deleting entries (with .has(), .set(), and .delete()).

If you want to look more into that, check out this article, which covers how much of a performance boost there is from using maps over normal objects.

 

Thanks! Yes I see it, performance is generally a lot better, good to know.

code of conduct - report abuse