-Enables to immediately return undefined in object chaining if a null or undefined is encountered.
?. is the symbol to achieve this.
Example #1
const customer :{
customerId: number,
firstName?: string,
lastName?:string,| using System; | |
| using System.Text; | |
| using System.Collections.Generic; | |
| namespace WordWrapper | |
| { | |
| public class Program | |
| { | |
| /*** |
public class HelloContext
{
private ISomething _smh ;
void Foo(string key)
{
switch(key)
{
case "A":