Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

A better way to concatenate arrays


var a = [1, 2], b = ["x", "y"], c = [true, false];
var d = a.concat(b, c);
console.log(d); // [1, 2, "x", "y", true, false];

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #A #concatenate #arrays
ADD COMMENT
Topic
Name
2+8 =