js es6 new set、数组去重

2019-09-02 19:09 / 已浏览 549 次
const numbers = [1,7,2,3,4,4,2,3,3,4,4,5,5,6,6,7,5,32,3,4,5]
console.log([...new Set(numbers)]) 

Img

群号:339840649
Node、Vue、react、angular