标签:asc dex nio indexof rgs array div var highlight
function unite(arr1, arr2, arr3) { //return arr1; var args = Array.from(arguments); var arr = args.reduce(function(pre,cur,index,array){ return pre.concat(cur); }); return arr.filter(function(item,index,array){ return arr.indexOf(item) === index; }); } unite([1, 3, 2], [5, 2, 1, 4], [2, 1]);
标签:asc dex nio indexof rgs array div var highlight
原文地址:http://www.cnblogs.com/mengruying/p/6197965.html