如何判断出这个对象有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]}
548k questions
547k answers
4 comments
86.3k users