I have an array that has values at two indexes and i want to populate the values of two indexes into one index probably in a different array.
this.nodesObjResultSingular = (2) [Array(6), Array(6)]
this.nodesObjResultSingular = [
[
{sets: Array(1), size: 12},
{sets: Array(1), size: 12},
{sets: Array(1), size: 12},
{sets: Array(2), size: 2},
{sets: Array(2), size: 2},
{sets: Array(2), size: 2}
],
[{sets: Array(1), size: 12},
{sets: Array(1), size: 12},
{sets: Array(1), size: 12},
{sets: Array(2), size: 2},
{sets: Array(2), size: 2},
{sets: Array(2), size: 2}]
];
How can I get the following ?
finalVenn = // all the 12 values of this.nodesObjResultSingular.
const flattened = [].concat(...nodesObjResultSingular )