reduce 数组快速去重

var obj = {};
this.billIdList = this.billIdList.reduce(function(item, next) {
obj[next.id] ? '' : obj[next.id] = true && item.push(next);
return item;
}, []);

原文地址:https://www.cnblogs.com/lgnblog/p/12517767.html