title: How to specify array elements as property values in an object in JavaScript?
body: <p>Lets say I have an array</p>
  
  <pre><code>var array = ["lionel", "messi"];
  </code></pre>
  
  <p>I want to use the values of the elements of that array for property values in an object. </p>
  
  <pre><code>var obj = {
    "first-name": "cristiano",
    "last-name": "ronaldo"
  }
  </code></pre>
  
  <p>I want the final object to be,</p>
  
  <pre><code>var obj = {
    "first-name": "lionel",
    "last-name": "messi"
  }
  </code></pre>
  
  <p>How do I do this in JavaScript? Or is there a lodash function which can do this?</p>