ES6以降の変更点総まとめ
(teamdable.github.io)<p>ES6(ES2015)<br />
- Array.prototype.includes()<br />
- 指数演算子<br />
<br />
ES2017<br />
- 文字列パディング<br />
- Object.entries()とObject.values()<br />
- Object.getOwnPropertyDescriptors()<br />
- Trailing Comma<br />
- Atomics, SharedArrayBuffer<br />
<br />
ES2018<br />
- Object rest/spread<br />
- Async iteration<br />
- Promise.prototype.finally()<br />
- 正規表現機能の追加<br />
<br />
ES2019<br />
- Array.prototype.flat()とArray.prototype.flatMap()<br />
- Object.fromEntries()<br />
- String.prototype.trimStart()とString.prototype.trimEnd()<br />
- オプショナルなcatch割り当て<br />
- Function.prototype.toString()<br />
- Symbol.prototype.description<br />
<br />
ES2020<br />
- BigInt<br />
- Dynamic import<br />
- オプショナルチェイニング<br />
- Promise.allSettled()<br />
- Null coalescing operator(null合体演算子)<br />
- String.prototype.matchAll()<br />
- モジュール名前空間export構文<br />
- import.meta<br />
- globalThis<br />
<br />
ES2021<br />
- String.prototype.replaceAll()<br />
- Promise.any()<br />
- 論理演算子と代入式<br />
- 数値区切り記号<br />
- WeakRef<br />
- Intl.ListFormat<br />
- Intl.DateTimeFormatのdateStyleおよびtimeStyle</p>
まだコメントはありません。