22-10-12 对象数组去重方式

// 通过es6的set数据结构去除数组对象中的重复对象
					let noRepeat = [...new Set(finall_nodeList.map(item=>JSON.stringify(item)))];
					let noRepeat_finall_nodeList = noRepeat.map(item => JSON.parse(item))
					// console.log("noRepeat_finall_nodeList",noRepeat_finall_nodeList)
posted @ 2022-10-12 15:29  皮皮买  阅读(14)  评论(0编辑  收藏  举报