9 ms·
Modules, iterators, async/await, localization, proxies, regex features, Promises, date functions, generators, classes, destructuring, WeakMap, strict mode, priv
by paulddraper 2y ago
Modules, iterators, async/await, localization, proxies, regex features, Promises, date functions, generators, classes, destructuring, WeakMap, strict mode, private members, BigInt, and a hundred other things.
Check out:
https://compat-table.github.io/compat-table/es5/ https://compat-table.github.io/compat-table/es5/
https://compat-table.github.io/compat-table/es6/ https://compat-table.github.io/compat-table/es6/
https://compat-table.github.io/compat-table/es2016plus/ https://compat-table.github.io/compat-table/es2016plus/
https://compat-table.github.io/compat-table/esintl/ https://compat-table.github.io/compat-table/esintl/
---
Not to mention that fact that Teams is actually written in TypeScript (tho compiled to JavaScript).
- viraptor 2y agoI see really only: strict mode, weakmap, bind, typed arrays, maybe spread. (+ async mentioned earlier) The rest as far as I can see can be either written as your own function or babel-style compilation. Sure, today's code would be nicer/shorter, but... the language itself really didn't change that much, just how we use it / what we expect from it.
- paulddraper 2y ago> babel-style compilation "It's not a different language, because you could have another language compile to it."
- viraptor 2y agoThis has been the situation for years though. Only recently did we get reasonable native support for most new standards by default. Babel compilation down to IE level was really common just few years ago. Most of the "modern JS" stuff was based on that idea. Teams was released before even the modules existed in the browsers.
- mhio 2y agoAlso https://node.green/ https://node.green/ which lays out features in one big list