title: Convert an array into object array with ids in JavaScript
body: <p>I have the following array </p>
  
  <pre><code>["Design", "Survey", "Geotech", "Community", "Progress", "Planning", "Commercial", "Logistics", "Milestones", "Environment", "Quality", "Safety"]
  </code></pre>
  
  <p>and I would like to convert into it the following format, would be nice if the ids were random or unique </p>
  
  <pre><code>data = [
      {id: 1, title: 'Design'},
      {id: 2, title: 'Survey'},
      {id: 3, title: 'Geotech'},
      {id: 4, title: 'Community'},
    ];
  } 
  </code></pre>