Both use ... but in opposite directions: spread expands a collection into individual items; rest collects items into a single array/object.
Spread — expand
js
a = [, ], b = [, ];
merged = [...a, ...b];
copy = [...a];
obj = { ...user, : };
.(...[, , ]);
