前端数组去重 ES6 new Set()

M1:
const arr = [1,1,13,4,,4] const setData = Array.from(new Set(arr)); console.log(setData);

 

posted on 2022-10-26 09:13  隔壁老王(加速版)  阅读(37)  评论(0)    收藏  举报