cekong

导航

js 含有对象的数组去重

1.  参考:https://www.cnblogs.com/le220/p/9130656.html

 js中数组对象去重的方法     中的方法二

 

2. 纯数组去重:https://blog.csdn.net/jiangwei1994/article/details/82992985

var arr = [1,1,2,9,6,9,6,3,1,4,5];
arr = Array.from(new Set(arr))
console.log(arr)

 

posted on 2019-06-05 18:34  cekong  阅读(1629)  评论(0编辑  收藏  举报