Is there any operator like ?. in TypeScript that can check if the variable is null or not defined like Kotlin? Like
person?.getName()?.firstName ?: \"None\"
The actual good answer is in Andreas' comment. Your example would be implemented as below from Typescript 3.7 onwards :
person?.getName()?.firstName ?? "None"
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#nullish-coalescing