RxJs distinct 操作符完成数组去重. // 数组都是数字 let arr = [1, 2, 1, 5, 3, 4, 5, 6] arr = await Rx.Observable.from(arr) .distinct() .toArray() .toPromise() ...
確定! 回上一頁