37.说一下几种数组去重的方式

54 阅读1分钟
  1. 双重for循环
  2. for循环+indexOf
  3. for循环+includes
  4. new Set
  5. reduce
  6. Map has/set