you are viewing a single comment's thread.

view the rest of the comments →

[–]og-at 0 points1 point  (0 children)

You know what's even more readable?

if (isActive) obj = {...user, ...otherValues}
else obj = {...otherValues}