1. Reference: https: //www.cnblogs.com/le220/p/9130656.html
The method of the js array object deduplication method two
2. pure array deduplication: 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)