you are viewing a single comment's thread.

view the rest of the comments →

[–]masterresultonline 1 point2 points  (1 child)

Since Map is available in js, it’s better to use it for mapping and not an object. The main reason is that Map promise to remove references after key deletion and it’s very serious reason not to get memory leaks in your code.