flâneur — a map of the web's best reading

TypeScript: Documentation

typescriptlang.org · 4,845 words · saved by 1 readers

TypeScript 3.7 Release Notes

Optional Chaining Playground Optional chaining is issue #16 on our issue tracker. For context, there have been over 23,000 issues on the TypeScript issue tracker since then. At its core, optional chaining lets us write code where TypeScript can immediately stop running some expressions if we run into a null or undefined . The star of the show in optional chaining is the new ?. operator for optional property accesses . When we write code like ts let x = foo ?. bar . baz (); this is a way of saying that when foo is defined, foo.bar.baz() will be computed; but when foo is null or undefined , stop

Explore this link on the map →

saved by

related reading