面试的一道题,将二维数组转换为一维数组
<script>
{
const arr=[[1,2,3],[3,4],[5]];
console.log([].concat.apply([],arr));
}
</script>