function unique(arr) { return Array.from(new Set(arr)) }
写一个函数方法
es6的数组去重方法
原文:https://www.cnblogs.com/jie98/p/14736288.html