If I have a class:
class MyClass {
constructor(props?: any) {
...
}
}
How would I check if props?.my_val
is undefined and set a value for it if that is the case?
If I have a class:
class MyClass {
constructor(props?: any) {
...
}
}
How would I check if props?.my_val
is undefined and set a value for it if that is the case?