showing results for - "unzip array javascript"
Máximo
30 Oct 2019
1//If you find something better, please, let me know :(
2let arr = [[1,2],[3,4],[5,6]]
3let [arr1, arr2] = [[], []]
4arr.map((e) => { arr1.push(e[0]); arr2.push(e[1]) })
5console.log(arr1,arr2) // [[1,3,5],[2,4,6]]
queries leading to this page
how to unzip data in javascripttwo arrays from one arrayunzip array javascriptconvert multiple array to single array in javascripttwo arrays in one javascripttwo array in one js new array creates two arraysjavascript unzip datacreate new array from two arrays javascripthow to create an array with two elements in javascriptarray with two named arrays inside javascript2 array jshow to make two array into one javascripthow to make an array from two arraystwo two arrays javascriptset two array into matrix javascriptmake one array of few arrays javascriptdavide array in two arrays javascriptcreate array from two arrays javascriptjs create multiple arrays from oneunzip in javascriptunzip javascriptjavascript unzipconvert a javascript array into multiple arrayshow to store two array in one arraygzip unzip jsmultiple array in array javascriptcreate multiple arrays from one array javascriptarray with arrays create one array javascriptjavascript two arrays to onearray of arrays into one array javascriptjavascript unzip filesjavascript unzip filemultiple arrays to one array javascripthow to make an array of arrays into one array jsjs unzipjavascript array into two arrayscreate multiple arrays in javascriptjs 2 arrays in onejs igualar 2 arraysjavascript unzip arraycreate function two array in javascripttwo array in one matrix javascripthow create a array of 2 array jsjavascript two arrays onehow to create multiple arrays in javascripttransform multiple arrays into one jsunzip array of arrays jsunzip jshow to unzip java scipt arrayunzip array javascript