typescript number or undefined code example
Example 1: typescript null and undefined check
if(!!someValue)
Example 2: angular type of string
if(typeof myVariable === 'string'){
//do
}
if(!!someValue)
if(typeof myVariable === 'string'){
//do
}