title: Convert Array of Object to Array and send it via Axios as parameter from a GET API
body: <p>I have one react native app the shows some ingredients and the user can select some of it to filter one specific recipe and see all the details, my doubt is, how can I convert the Array of ingredient objects to an Array of &quot;names&quot; and send it via Axios?</p>
  <p>Array of objects I am receiving from the API:</p>
  <pre><code>Array [
    Object {
      &quot;id&quot;: 8,
      &quot;isSelected&quot;: true,
      &quot;name&quot;: &quot;leite condensado&quot;,
    },
    Object {
      &quot;id&quot;: 9,
      &quot;isSelected&quot;: true,
      &quot;name&quot;: &quot;creme de leite&quot;,
    },
  ]
  </code></pre>
  <p>and the API expect something like</p>
  <pre><code>/report?name='suco de limão', 'bolacha'
  </code></pre>
  <p>So, I need to extract only the values from the name Key, as Array.</p>
  <p>Anyone knows if I can do it in the front to keep the API without any update?</p>