title: How to map array of values to an array of objects
body: <p>I would like to convert the following array to an array of objects:</p>
  
  <pre><code>let arr = ['tree', 'apple', 'orange']
  </code></pre>
  
  <p>to </p>
  
  <pre><code>arr = [
    {value: tree},
    {value: apple},
    {value: orange}
  ]
  </code></pre>
  
  <p>My solution so far is:</p>
  
  <pre><code>let temp = []; 
  arr.forEach(x =&gt; {   
     temp.push({value: p}); 
  });
  
  arr = temp
  </code></pre>
  
  <p>how do I solve this problem with the array.map() functionality so I can just call</p>
  
  <pre><code>arr.map()...
  </code></pre>