can an object be a condition in javascript code example
Example: checking a condition in object javascript
{ id: 'some-id', ...(true && { optionalField: 'something'})}
{ id: 'some-id', ...(true && { optionalField: 'something'})}