title: Convert string array into field names using javascript
body: <p>Was wondering if there was a nice way in javascript, preferably es6, to convert a string array that was a result from a map function into field names in a dynamically created object.  </p>
  
  <p>For example, say I get the following result from my map function:</p>
  
  <pre><code>["checkbox1Value", "checkbox4Value"]
  </code></pre>
  
  <p>I would like to do this with those results:</p>
  
  <pre><code>const answer = {
       //some other fields dynamically created
       checkbox1Value: true,
       checkbox4Value: true 
  }
  </code></pre>
  
  <p>Anyway of doing this via es6?</p>