DEV Community

Discussion on: The shortest way to conditional insert properties into an object literal

Collapse
 
jfet97 profile image
Andrea Simone Costa

I think you will understand that this is beyond the scope of the article.
My first point was to show a nice, little know js fact. The second was to explain why such code is allowed.
All the rest is left to the reader's good will and curiosity :D