js 含有对象的数组去重 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)

猜你喜欢

转载自www.cnblogs.com/cekong/p/10981275.html