() let cateArr = arr.reduce(function (arr, current) { hash[current.category_id] ? '' : hash[current.category_id] = true && arr.push(current); return arr }, []); (
)
转载于:https://www.cnblogs.com/gkxNB/p/11428433.html