handle find property in array if undefined

后端 未结 0 1564

I have this simple code that works. However it feels cheesy and like I am doing something stupid. So is this how I would handle this if I wanted to be in one line?

         


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