You can simply use typeof. It will check undefined, null, 0 and “” also.
if(typeof RetailPrice!='undefined' && RetailPrice){
return this.RetailPrice;
}
You can simply use typeof. It will check undefined, null, 0 and “” also.
if(typeof RetailPrice!='undefined' && RetailPrice){
return this.RetailPrice;
}