DEV Community

Discussion on: Simplifying code with Maps in JavaScript

Collapse
 
clarity89 profile image
Alex K.

Hi Benoit,

Thank you for the comment. It actually should be const [title, Icon] = typeMap.get(cardType.value), I've forgot to update it after introducing the dropdown. I'll fix it in the article.

Thank you for pointing it out!