DEV Community

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

Collapse
 
carlospaz2084 profile image
Carlos

Very helpful what Stan posted here. Parenthesis really help. Actually they are a default lint recommendation in this specific case. I think adding them to the code in the article would help a lot.

Collapse
 
jfet97 profile image
Andrea Simone Costa

But it wouldn't be the shortest anymore ;)

Thread Thread
 
carlospaz2084 profile image
Carlos

hey man! I'm trying to help you here! lol...great article!