Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

unzip array javascript

//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]]
Comment

PREVIOUS NEXT
Code Example
Javascript :: append string js 
Javascript :: get largest no in the array javascript 
Javascript :: callback without duplicates javascript 
Javascript :: send audio with socket io node js 
Javascript :: concat emoji with text in react js 
Javascript :: iterating string js 
Javascript :: loop do while javascript 
Javascript :: react file preview 
Javascript :: npm jsonwebtoken 
Javascript :: sort in array in javascript 
Javascript :: how to check two different length array values are equal in javascript 
Javascript :: lodash remove not in array 
Javascript :: address 
Javascript :: discord.js create channel and get id 
Javascript :: angular 11 features 
Javascript :: find object and remove in array 
Javascript :: array==null array.length java script 
Javascript :: alternative way to handle React routes in a separate file 
Javascript :: how to export default class in javascript 
Javascript :: nodejs sequelize find 
Javascript :: get all form errors angular 
Javascript :: hooks developed by react native 
Javascript :: uirouter 
Javascript :: javascript scrollby div 
Javascript :: how to sepaarte text in object javascript 
Javascript :: console.log printing object object 
Javascript :: crdit card input format 
Javascript :: binance client create order 
Javascript :: javascript foreach table 
Javascript :: is missing in props validationeslintreact/prop-types 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =