数组去重

57 function distinct(a, b) { return Array.from(new Set([...a, ...b])) }16 function distinct(a, b) { let arr = a.concat(b) let result = [] let obj = {}
posted @ 2018-09-21 10:11  SaYes  阅读(142)  评论(0编辑  收藏  举报