JS数组拍平

初步使用

const arr = [1, [2, 3, 4], 5];
arr.flat();

https://www.cnblogs.com/suihang/p/13606983.html

posted @ 2022-03-23 14:15  前端路远且长  阅读(42)  评论(0)    收藏  举报