Currently, there is no elvis operator in neither JavaScript nor TypeScript. Ternary/conditional operator 7. That will create hard to find, unexpected errors if you hit a non-null value that can be auto-converted to a boolean, like "0", "", or [0]. Have a closer look – you will see a pair of eyes with elivs like haircut. null | undefined | "" | 0 | false | NaN).. Use Cases. Optional Chaining Operator is supported in TypeScript 3.7. TypeScript - Operators - An operator defines some function that will be performed on the data. Enter TypeScript 3.7… TypeScript 3.7 gave us the optional chaining operator ( ?.) In C# you can write code like this Nullable age = person?.BestFriend?.Mother?.CurrentHusband?.Age); If any of the values along the way it will return a null rather than throwing a NullReferenceException. You can also use spread operator for object destructuring. See mdn: Optional chaining for more information. A discussion of the challenges faced today traversing tree-like structures safely at runtime in TypeScript and a corresponding open-source solution for optional chaining called ts-optchain. Elvis Operator (aka Safe Navigation) in JavaScript and TypeScript, Consider it a document of history. How to replace all occurrences of a string? The general tripwires for re-evaluating this would be a concrete ES proposal reaching the next stage, or a general consensus from the ES committee that this feature wouldn't happen for a long time (so that we could define our own semantics and be reasonably sure that they would "win"). Editing a person's name and address import {Component, OnInit} from '@angular/core'; import {FormBuilder, FormGroup} from '@angular/forms'; @Component({ selector: 'app-root', template: './app.component.html', }) export class AppComponent implements OnInit { public form: FormGroup; constructor(private formBuilder: FormBuilder) {} ngOnInit(): void { this.form = this.formBuilder.group({ name: 'Person\'s name', address_line1: 'Address line 1', address_line2: 'Address line 2', }); } }