Michael Landis
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)`.

--

--

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

Responses (1)