Safe navigation operator in angular .ts file

145 Views Asked by At

Can we use safe navigation operator in .ts file angular application?
Does it cause any performance related issues if we include in .ts file?

1

There are 1 best solutions below

1
knittl On BEST ANSWER

The Optional Chaining operator is part of TypeScript since TypeScript version 3.7 from November 2019 (three years ago). So as long as your TypeScript compiler runs 3.7 or newer, there should be no problem at all using this operator.