📜  es6 concat 数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:26.611000             🧑  作者: Mango

代码示例3
let fruits = ["apples", "bananas"];
let vegetables = ["corn", "carrots"];
let produce = [...fruits, ...vegetables];
//["apples","bananas","corn","carrots"]