What Typescript features are not implemented in ES6?

Besides the obvious type system, I read that there are functions in TypeScript that are not available in ES6. The article did not mention what these functions were or why they should be avoided.

I already know that TypeScript implements AS7 async / await syntax, and this post ( What ES6 features are implemented in Typescript ) gives us feedback.

+5
source share
1 answer

New features that do not exist in ES 6

As @A Red Herring says:

TypeScript is a superset of JavaScript, and not vice versa, so it makes sense that many functions in TypeScript will not be present in ES6

That's why you should not forget about pure JS functions and think in JS, but not in TypeScript

+2
source

Source: https://habr.com/ru/post/1232722/


All Articles