andrysimo1997 at gmail.com (2018-11-28T21:38:57.272Z)
Ops I saw it now ahahah sorry. Anyway there is a function call and an "useless"
object creation. Furthermore you are forced to pass arguments using an object (not
so bad but...another object creation).
To avoid the function call I would do:
```js
F({par1, par2, ..., parN}) {
this = {...arguments[0]};
}
```
Another thing...`arguments` is deprecated, right?
Ops I saw the now ahahah sorry. But anyway there is a function call and an object creation and you are forced to pass arguments using an object (not so bad but...another object creation). To avoid the function call I would do: ```js F({par1, par2, ..., parN}) { this = {...arguments[0]}; } ``` Another thing...`arguments` is deprecated, right? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20181128/c40c783e/attachment.html>