ES6〜ES13(es2015〜es2022)まとめ

## ES仕様一覧表
| 追加仕様                         | ES<br>2015<br>(ES6) | ES<br>2016<br>(ES7) | ES<br>2017<br>(ES8) | ES<br>2018<br>(ES9) | ES<br>2019<br>(ES10) | ES<br>2020<br>(ES11) | ES<br>2021<br>(ES12) | ES<br>2022<br>(ES13) |
|:--------------------------------|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|
| let/const宣言                    | ○           |             |             |             |             |             |             |             |
| class構文                        | ○           |             |             |             |             |             |             |             |
| Promise                         | ○            |             |             |             |             |             |             |             |
| アロー関数                        | ○           |             |             |             |             |             |             |             |
| importとexportによるモジュール構文  | ○           |             |             |             |             |             |             |             |
| テンプレート文字列                 | ○           |             |             |             |             |             |             |             |
| 関数の可変長引数                   | ○           |             |             |             |             |             |             |             |
| 関数のデフォルト引数                | ○           |             |             |             |             |             |             |             |
| 分割代入                          | ○            |             |             |             |             |             |             |             |
| 配列展開                          | ○            |             |             |             |             |             |             |             |
| for of                           | ○            |             |             |             |             |             |             |             |
| Map/Set/WeakMap/WeakSet          | ○            |             |             |             |             |             |             |             |
| Symbol                           | ○            |             |             |             |             |             |             |             |
| 型付き配列                         | ○            |             |             |             |             |             |             |             |
| Array.includes                   |              | ○           |             |             |             |             |             |             |
| Exponentiation operator          |              | ○           |             |             |             |             |             |             |
| Object.values/Object.entries     |              |             | ○           |             |             |             |             |             |
| String.padStart/String.padEnd    |              |             | ○           |             |             |             |             |             |
| Object.getOwnPropertyDescriptors |              |             | ○           |             |             |             |             |             |
| 末尾カンマ許容                     |              |             | ○           |             |             |             |             |             |
| Async/Await                      |              |             | ○           |             |             |             |             |             |
| Shared memory and atomics        |              |             | ○           |             |             |             |             |             |
| オブジェクトのRest/Spread          |              |             |             | ○           |             |             |             |             |
| Promise.finally                  |              |             |             | ○           |             |             |             |             |
| テンプレートリテラルの改修           |              |             |             | ○           |             |             |             |             |
| 正規表現:sオプション                |              |             |             | ○           |             |             |             |             |
| 正規表現:名前付きグループ            |              |             |             | ○           |             |             |             |             |
| 正規表現:後読み                    |              |             |             | ○           |             |             |             |             |
| 正規表現:uオプション                |              |             |             | ○           |             |             |             |             |
| for-await-of                     |              |             |             | ○           |             |             |             |             |
| catch引数の不要化                  |              |             |             |             | ○           |             |             |             |
| JSON superset                    |              |             |             |             | ○           |             |             |             |
| Symbol.description               |              |             |             |             | ○           |             |             |             |
| Function.toString revision       |              |             |             |             | ○           |             |             |             |
| Object.fromEntries               |              |             |             |             | ○           |             |             |             |
| Well-formed JSON.stringify       |              |             |             |             | ○           |             |             |             |
| String.trimStart/String.trimEnd  |              |             |             |             | ○           |             |             |             |
| Array.flat/Array.flatMap         |              |             |             |             | ○           |             |             |             |
| BigInt                           |              |             |             |             |            | ○            |             |             |
| for-in ループにおける順序保証        |              |             |             |             |            | ○            |             |             |
| ヌル合体(??)演算子                 |              |             |             |             |            | ○            |             |             |
| Optional Chaining(?.)            |              |             |             |             |            | ○            |             |             |
| globalThis                       |              |             |             |             |            | ○            |             |             |
| String.matchAll                  |              |             |             |             |            | ○            |             |             |
| Dynamic Import                   |              |             |             |             |            | ○            |             |             |
| export * as ns from module       |              |             |             |             |            | ○            |             |             |
| import.meta                      |              |             |             |             |            | ○            |             |             |
| Promise.allSettled               |              |             |             |             |            | ○            |             |             |
| \|\|= &&= ??=                      |              |             |             |             |            |              | ○           |             |
| 数値セパレータ(_)                  |              |             |             |             |            |              | ○           |             |
| String.replaceAll                |              |             |             |             |            |              | ○           |             |
| Promise.any                      |              |             |             |             |            |              | ○           |             |
| WeakRef                          |              |             |             |             |            |              | ○           |             |
| Top-level await                  |              |             |             |             |            |              |             | ○           |
| Array.at/String.at               |              |             |             |             |            |              |             | ○           |
| Private fields(#)                |              |             |             |             |            |              |             | ○           |
| Static fields                    |              |             |             |             |            |              |             | ○           |
| 静的イニシャライザーブロック          |              |             |             |             |            |              |             | ○           |
| Object.hasOwn                    |              |             |             |             |            |              |             | ○           |
| Error.cause                      |              |             |             |             |            |              |             | ○           |
| 正規表現:dオプション                |              |             |             |             |            |              |             | ○           |