原创 javascript 數組去重常用方法彙總

mark一些我常用的數組去重的方法 1、set方法 const arr = [1,2,3,1,1,2,3,4,2,1,2,3,4,4,2,2,1,2,3,4] function reset (arr) { return Arr