4 ms·
except it's not just for function arguments/parameters. It can be used in all sorts of contexts to spread out an array or object. E.g. ```js const object1 =
by culi 5y ago
except it's not just for function arguments/parameters. It can be used in all sorts of contexts to spread out an array or object. E.g.
```js
const object1 = {
field1: true,
field2: 42
};
const object2 = {
...object1,
field3: 'the meaning of life, the universe, and everything'
};
```