title: How to convert array into specif object in javascript?
body: <p>I want to convert this array: </p>
  
  <pre><code>Array = [
    0: 0
    1: 25
    2: 50
    3: 75
    4: 100
  ]
  </code></pre>
  
  <p>into this object: </p>
  
  <pre><code>let disabilityOptions = [
      { key: 0, text: '0%', value: 0 },
      { key: 1, text: '25%', value: 25 },
      { key: 2, text: '50%', value: 50 },
      { key: 3, text: '75%', value: 75 },
      { key: 4, text: '100%', value: 100 },
    ] 
  </code></pre>
  
  <p>I didn't succed to find some functions in lodash for this convert case.</p>
  
  <p>Any advice or tips are welcome.</p>