javascript - merging arrays into one [["510", "511", "512", "513"], ["514", "515"]] -
this question has answer here: how merge 2 arrays in javascript , de-duplicate items 52 answers merge/flatten array of arrays in javascript? 54 answers [["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