This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
parasquid
parasquid.dev
did:plc:4znts3iwp3rqlej7tisdsjmz
I was looking to conditionally add an attribute to a js object and found this: https://andreasimonecosta.dev/posts/the-shortest-way-to-conditionally-insert-properties-into-an-object-literal/
```
const obj = {
...condition && { prop: value },
};
```
Short and sweet :)
Definitely adding this to my toolbox.
2025-04-22T07:01:16.782Z