loading...

re: The shortest way to conditional insert properties into an object literal VIEW POST

FULL DISCUSSION
 

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

 

Google rest/spread operators 😆

 

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

Code of Conduct Report abuse