title: Is there a better way of copying constructor parameters to object properites?
body: <p>My class' constructor looks like this:</p>
  
  <pre><code>class Customer {
    constructor(params) {
      this.id = params.id;
      this.firstName = params.firstName;
      this.lastName = params.lastName;
    }
  }
  </code></pre>
  
  <p>I like using named parameters (my object actually has more parameters than this).</p>
  
  <p>In ECMAScript 2015/2016 is there a better way of assigning the variables than this?</p>