Answers for "javascript merge multidimensional array"

4

concatenate multiple arrays javascript

const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = [...array1, ...array2];

console.log(array3);
// expected output: Array ["a", "b", "c", "d", "e", "f"]
Posted by: Guest on April-23-2020
0

javascript merge multidimensional array

const _questions = _.map(this.sections, section => section.questions);
const questions  = Array.prototype.concat.apply([], _questions);
Posted by: Guest on February-11-2021

Code answers related to "javascript merge multidimensional array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language