SOURCE

let data = [{a:1,b:2,c:3},{a:null,b:3,c:4}]
 data.map((item) => {
    for (key in item) {
     
      if(item[key]==null){
          item[key] ="--"
          
      }
    }
});


 console.log(data);
console 命令行工具 X clear

                    
>
console