Answers for "how to check the type of variable in angular"

3

typescript check type of variable

if (fooOrBar instanceof Foo){
  // TypeScript now knows that `fooOrBar` is `Foo`
}
Posted by: Guest on December-03-2020

Code answers related to "how to check the type of variable in angular"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language