Récapitulatif complet des changements depuis ES6
(teamdable.github.io)<p>ES6(ES2015)<br />
- Array.prototype.includes()<br />
- opérateur d'exponentiation<br />
<br />
ES2017<br />
- padding de chaînes de caractères<br />
- Object.entries() et Object.values()<br />
- Object.getOwnPropertyDescriptors()<br />
- virgule finale<br />
- Atomics, SharedArrayBuffer<br />
<br />
ES2018<br />
- Object rest/spread<br />
- itération asynchrone<br />
- Promise.prototype.finally()<br />
- ajout de fonctionnalités aux expressions régulières<br />
<br />
ES2019<br />
- Array.prototype.flat() et Array.prototype.flatMap()<br />
- Object.fromEntries()<br />
- String.prototype.trimStart() et String.prototype.trimEnd()<br />
- affectation catch optionnelle<br />
- Function.prototype.toString()<br />
- Symbol.prototype.description<br />
<br />
ES2020<br />
- BigInt<br />
- import dynamique<br />
- chaînage optionnel<br />
- Promise.allSettled()<br />
- opérateur de coalescence des nuls<br />
- String.prototype.matchAll()<br />
- syntaxe d'export de l'espace de noms de module<br />
- import.meta<br />
- globalThis<br />
<br />
ES2021<br />
- String.prototype.replaceAll()<br />
- Promise.any()<br />
- opérateurs logiques et expressions d'affectation<br />
- séparateurs numériques<br />
- WeakRef<br />
- Intl.ListFormat<br />
- dateStyle et timeStyle de Intl.DateTimeFormat</p>
Aucun commentaire pour le moment.