126
rated 0 times
[
130]
[
4]
/ answers: 1 / hits: 17758
/ 7 Years ago, wed, november 1, 2017, 12:00:00
I would like to merge 2 arrays with a different length:
let array1 = ["a", "b", "c", "d"];
let array2 = [1, 2];
The outcome I would expect is ["a", 1 ,"b", 2, "c", "d"]
What's the best way to do that?
More From » ecmascript-6