Kevin
Kevin
@1kevinson.bsky.social
Yesterday, I discovered this JavaScript tip: Object literal shorthand.

When an object is being constructed, you can use the shorthand notation by simply writing `{email}` instead of `{email: email}`.

It seems obvious, but I wasn't aware of it until yesterday 🙂
February 19, 2025 at 8:43 AM