Resumo completo das mudanças após o ES6
(teamdable.github.io)<p>ES6(ES2015)<br />
- Array.prototype.includes()<br />
- Operador de exponenciação<br />
<br />
ES2017<br />
- Preenchimento de strings<br />
- Object.entries() e Object.values()<br />
- Object.getOwnPropertyDescriptors()<br />
- Trailing Comma<br />
- Atomics, SharedArrayBuffer<br />
<br />
ES2018<br />
- Object rest/spread<br />
- Iteração assíncrona<br />
- Promise.prototype.finally()<br />
- Adições aos recursos de expressões regulares<br />
<br />
ES2019<br />
- Array.prototype.flat() e Array.prototype.flatMap()<br />
- Object.fromEntries()<br />
- String.prototype.trimStart() e String.prototype.trimEnd()<br />
- Atribuição opcional no catch<br />
- Function.prototype.toString()<br />
- Symbol.prototype.description<br />
<br />
ES2020<br />
- BigInt<br />
- Importação dinâmica<br />
- Encadeamento opcional<br />
- Promise.allSettled()<br />
- Operador de coalescência nula<br />
- String.prototype.matchAll()<br />
- Sintaxe de export de namespace de módulo<br />
- import.meta<br />
- globalThis<br />
<br />
ES2021<br />
- String.prototype.replaceAll()<br />
- Promise.any()<br />
- Operadores lógicos e expressões de atribuição<br />
- Separadores numéricos<br />
- WeakRef<br />
- Intl.ListFormat<br />
- dateStyle e timeStyle do Intl.DateTimeFormat</p>
Ainda não há comentários.