Hacker News new | past | comments | ask | show | jobs | submit login

I, too, find it ridiculous to repeat `foo={foo}` over and over again. So I use the spread operator with ES6 shorthand object syntax. Now it’s `{...{ foo }}`. No breaking changes needed!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: