Question: how could you check null and undefined in typescript?
Answer: Typescript does NOT have a function to check if a variable is defined. var result = uemail || ''; This will give you the email if uemail variable has some value and it will simply return an empty string if uemail variable is undefined.