DEV Community

Discussion on: The shortest way to conditional insert properties into an object literal

Collapse
ctimmerman profile image
Cees Timmerman

I know how && works, but wtf does ... do?

Collapse
jfet97 profile image
Andrea Simone Costa Author

Google rest/spread operators 😆

Collapse
ctimmerman profile image
Cees Timmerman • Edited on

It unpacks stuff, like * in Python, which "spread" could be a synonym for, but "rest operator"? googles Ah, as in "remaining parameters".