Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

make multiple array in one array

function flatten(arr) {
   // your code here    
}

var arrays = [
    ["1", "2", "3"],
    [true],
    [4, 5, 6]
];

console.log(flatten(arrays)); // ["1", "2", "3", true, 4, 5, 6];
Source by coursework.vschool.io #
 
PREVIOUS NEXT
Tagged: #multiple #array #array
ADD COMMENT
Topic
Name
6+8 =