JavaScript: Merge multiple Arrays object in to single Array of objects : <p>I am receiving the following data in the variable </p>

<pre><code>let data = [
    [{option: “foo0", value: “bar0”}],
    [{option: “foo1", value: “bar1”}],
    [{option: “foo2", value: “bar2”}],
    [{option: “foo3", value: “bar3”}],
 ]
</code></pre>

<p>and I need to change the response to</p>

<pre><code>[
    {option: “foo0", value: “bar0”},
    {option: “foo1", value: “bar1”},
    {option: “foo2", value: “bar2”},
    {option: “foo3", value: “bar3”},
]
</code></pre>

<p>how can i do it in JS</p>
