Software Developer who works mostly on Web stuff. I like JS, but I also like other things. I also do photography, and look at sneakers online that I will never be able to buy.
But it seems from the last comment on the thread that it actually has not been implemented in TypeScript, and it wont be implemented until the ES committee locks down its semantics :/ That is, unless there's something I'm missing?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Typescript already has this. Would be nice in vanilla Js too
It is present in CoffeeScript
Typescript does not have it. They won't implement anything in stage 1. github.com/Microsoft/TypeScript/is...
I have used it in Angular isn't it Typescript?
That's from Angular template syntax. It's called safe navigation operator. Not from TypeScript.
So apparently there has been a lengthy, 3 years long discussion about adding this to TS, which sometimes gets heated.
But it seems from the last comment on the thread that it actually has not been implemented in TypeScript, and it wont be implemented until the ES committee locks down its semantics :/ That is, unless there's something I'm missing?