深拷贝和数组去重

深拷贝是
JSON.parse(JSON.stringify(    array   ))

数组去重的简单办法是
[...new Set(arr)]

  

posted on 2020-05-11 16:55  危险*  阅读(100)  评论(0编辑  收藏  举报