摘要: let obj={ 'a':'a', 'b':null, 'c':'c' } var removePropertyOfNull=function(obj){ Object.keys(obj).forEach(item=>{ if(!obj[item]) delete obj[item] }) return obj; } remo... 阅读全文
posted @ 2019-03-02 22:15 mingL 阅读(6395) 评论(0) 推荐(1) 编辑