📅  最后修改于: 2022-03-11 15:03:50.502000             🧑  作者: Mango
Javascript >> Google Script array concat doesn't work from javascript by Clear Civet on Mar 11 2020
const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);
console.log(array3);
// expected output: Array ["a", "b", "c", "d", "e", "f"]
// console.log and Logger.log do not show array structure. Use JSON.stringify to see correctly.
Logger.log(JSON.stringify(array3)); // expected output: Array ["a", "b", "c", "d", "e", "f"]