如何判断出这个对象有null的key值,并让null变为""
const data = {a:null, b:1,c:{},d:[],e:undefined,f:''} for(let k in data){data[k] = data[k]===null?'':data[k]}
1.4m articles
1.4m replys
5 comments
57.0k users