深拷贝和数组去重

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

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

  

原文地址:https://www.cnblogs.com/yadi001/p/12870163.html