Copy properties of object to another skipping undefined ones

前端 未结 0 986
说谎
说谎 2021-01-29 01:55

How can I copy a list of properties from a object to another skipping the null or undefined values?

Something like this



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题