type of value angular code example
Example 1: type of angular
console.log(typeof(this.a));
Example 2: angular type of string
if(typeof myVariable === 'string'){
//do
}
console.log(typeof(this.a));
if(typeof myVariable === 'string'){
//do
}