1 min readFeb 26, 2020
Using a map doesn’t reduce the likelihood of errors. Checking for the existence of a key reduces the likelihood of errors. That can be done just as easily and more concisely with `if (obj.event)`.
Using a map doesn’t reduce the likelihood of errors. Checking for the existence of a key reduces the likelihood of errors. That can be done just as easily and more concisely with `if (obj.event)`.
Front-end web developer, React enthusiast, vagabond.