javascript - What is the most efficient way to concatenate N arrays
https://stackoverflow.com/questions/5080028/what-is-the-most-efficient-way-to-concatenate-n-arrays
WEBFeb 22, 2011 · 454. If you're concatenating more than two arrays, concat () is the way to go for convenience and likely performance. 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]; For concatenating just two arrays, the fact that push accepts multiple arguments consisting of elements ...
DA: 83 PA: 88 MOZ Rank: 2