Answers for "make an array of multiple arrays"

C#
0

combined 2 arrays

int[] front = { 1, 2, 3, 4 };
int[] back = { 5, 6, 7, 8 };

int[] combined = new int[front.Length + back.Length];
Array.Copy(front, combined, front.Length);
Array.Copy(back, 0, combined, front.Length, back.Length);
Posted by: Guest on May-19-2021
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 "make an array of multiple arrays"

C# Answers by Framework

Browse Popular Code Answers by Language