DEV Community

Discussion on: How to conditionally build an object in ES6

Collapse
 
kmelve profile image
Knut Melvær

Ah, the many pitfalls of JavaScript 😅 In this case it id is always a string, but it's good that you point that gotcha out! 👌