📅  最后修改于: 2022-03-11 15:01:42.299000             🧑  作者: Mango
function flatten(arr) {
// your code here
}
var arrays = [
["1", "2", "3"],
[true],
[4, 5, 6]
];
console.log(flatten(arrays)); // ["1", "2", "3", true, 4, 5, 6];