js 对象的键名去重

 let objArr=[
     {"s","dakjsdm"},
     {"ss","dajshdkads"},
     {"s","dgjsahd"},
     {"ss","dakjsdgaddm"},
 ] ;
 function objArray(objarray){
    let len=objarray.length;
    let tem={};
    let res=[];
    for(var i=0;i

你可能感兴趣的:(js 对象的键名去重)