SOURCE

function unique(arr){
    return arr.reduce((prev,cur) =>{ console.log(prev, cur)};
}
var arr = [1,1,'true','true',true,true,15,15,false,false, undefined,undefined, null,null, NaN, NaN,'NaN', 0, 0, 'a', 'a',{},{}];
console.log(unique(arr));
console 命令行工具 X clear

                    
>
console