how to check is null or empty in typescript
if(typeof propertyValue!='undefined' && propertyValue){
//execute code here
}
javascript check if string is empty
var string = "not empty";
if(string == ""){
console.log("Please Add");
}
else{
console.log("You can pass"); // console will log this msg because our string is not empty
}