make one array with multiple array javascript code example

Example 1: from array create two arrayjavascript

//If you find something better, please, let me know :(
let arr = [[1,2],[3,4],[5,6]]
let [arr1, arr2] = [[], []]
arr.map((e) => { arr1.push(e[0]); arr2.push(e[1]) })
console.log(arr1,arr2) // [[1,3,5],[2,4,6]]

Example 2: javascript merge multidimensional array

const _questions = _.map(this.sections, section => section.questions);
const questions  = Array.prototype.concat.apply([], _questions);