ES2016(ES7)
参考 http://2ality.com/2016/01/ecmascript-2016.html
两个特性:
ES2017(ES8)
参考 http://2ality.com/2016/02/ecmascript-2017.html
主要新特性:
次要新特性:
- Object.values and Object.entries
- String Padding
- Object.getOwnPropertyDescriptors
- Trailing commas in function parameter lists and calls
ES2018(ES9)
参考 http://2ality.com/2017/02/ecmascript-2018.html
主要新特性:
正则表达式新特性:
- RegExp named capture groups
- RegExp Unicode Property Escapes
- RegExp Lookbehind Assertions
- s(dotAll) flag for regular expressions
其他: