title: Change array of elements to objects with static key value
body: <p>So, I have an array as follows.</p>
  <pre><code>Array.from(Array(3).keys())
  //=&gt; [0, 1, 2]
  </code></pre>
  <p>I wanted to convert this array to object and assign a static key called <code>value</code> to each elements.</p>
  <p>So the final result should be</p>
  <pre><code>result = [
  {
  value: 0,
  },
   {
  value: 1,
  },
  {
  value: 2,
  }
  ]
  </code></pre>