title: Update multiple values of object in JavaScript
body: <p>Given an object </p>
  
  <pre><code>var myObject = {
      label: 'foo',
      name: 'bar',
      id: 12
  },
  </code></pre>
  
  <p>If I wanted to change multiple values, I would do the following: </p>
  
  <pre><code>myObject.label = "bar";
  myObject.name = "foo";
  </code></pre>
  
  <p>When updating large sets of data, it makes the code quite blocky. Is there a way to do this in a more concise manner?</p>
  
  <p>Like:</p>
  
  <pre><code>myObject.({label: 'foo'}, {name: 'bar'});
  </code></pre>