I have a variable.
abc:number|string;
How can I check its type? I want to do something like below:
if (abc.type === "number") {
// do something
}
I have a variable.
abc:number|string;
How can I check its type? I want to do something like below:
if (abc.type === "number") {
// do something
}