es6新增的數組去重方法

function dedupe(arr){spa return Array.form(new Set(arr));orm }io dedupe([1,2,3,4,5,55,5,5]);function 不用冒泡、快排,一句代碼搞定,簡單吧。form
相關文章
相關標籤/搜索