สรุปการเปลี่ยนแปลงทั้งหมดหลัง 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 />
- เพิ่มความสามารถของ Regular Expression<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 />
- Optional chaining<br />
- Promise.allSettled()<br />
- Null coalescing operator (ตัวดำเนินการรวมค่า null)<br />
- String.prototype.matchAll()<br />
- ไวยากรณ์ export ของ module namespace<br />
- import.meta<br />
- globalThis<br />
<br />
ES2021<br />
- String.prototype.replaceAll()<br />
- Promise.any()<br />
- ตัวดำเนินการเชิงตรรกะและนิพจน์กำหนดค่า<br />
- ตัวคั่นหลักในตัวเลข<br />
- WeakRef<br />
- Intl.ListFormat<br />
- dateStyle และ timeStyle ของ Intl.DateTimeFormat</p>
ยังไม่มีความคิดเห็น