Simo Costa (2018-11-28T22:01:35.000Z)
andrysimo1997 at gmail.com (2018-11-28T22:05:09.326Z)
I assumed that `F` was called with `new`, providing a valid `this` object too and I've used the object spread syntax to avoid a function call. Anyway I prefer ```js F(par1, par2, ..., parN) { this.par1 = par1; this.par2 = par2; ... this.par3 = par3; } ``` to this: ```js F(arg) { let {par1, par2, ..., parN} = arg; Object.assign(this, arg); } ``` Because there is no function call (` Object.assign `), no useless object creation (when you pass arguments) nor duplication. The first should be faster. And it is obviously clearer. So: ```js F(.par1, .par2, ..., .parN) {} ``` Could be fast too. Maybe also clear, because when you learn what it does...you cannot misundertood it later.