javascript - merging arrays into one [["510", "511", "512", "513"], ["514", "515"]] -
this question has answer here:
[["510", "511", "512", "513"], ["514", "515"]]
i need merge one.
it should this:
["510", "511", "512", "513", "514", "515"]
can me using javascript ?
try -
var array1 = ["510", "511", "512", "513"] var array2 = ["514", "515"] var concatarray = array1.concat(array2);
hope helps
Comments
Post a Comment