Check if an object's properties are null in Typescript

前端 未结 3 1122
粉色の甜心
粉色の甜心 2020-12-11 22:18

In Typescript I am checking if an object\'s properties are null as follows:

var addressCountryName = response.address == null 
   ? null 
   : response.addre         


        
3条回答
提交回复
热议问题