DEV Community


Discussion on: Making Sense of Syntax

lifelongthinker profile image

While I prefer readable code, I also know that "readable" is in the eye of the beholder.
Someone who is very familiar with such advanced JS syntax will find

!!{...obj, ...obj2}.item

absolutely readable. Others not so much.
If the target audience of my code is people among the first group, I'd use it. Otherwise, not so much.

Trade offs as usual ðŸĪŠ