数组去重的三种方法 es6

  

[1,2,3,4,5,6,7,8,9,2,2,3,3,4,1].filter(function(el,index,arr){
return (index === arr.indexOf(el));
})

  

https://www.tongbiao.xyz/
原文地址:https://www.cnblogs.com/tongbiao/p/9362491.html