问题
According to this blog: https://webapplog.com/es7-es8/
ES7 features are:
- Array.prototype.includes
- Exponentiation Operator
Is this right? If it is, why it took a year to commit only two minor changes to the standard (Array.prototype.includes
is just an alias to indexOf !== -1
)?
回答1:
Yes, those were the new features ready at the time.
Of course, there also have been lots of editorial changes that fixed minor spec issues.
Notice that instead of ES7 (ECMAScript 7. Edition) one should rather use the term ES2016 to refer to that release with its relatively low significance. "ES7" was at the time (between the releases of ES2015 and ES2016) often misused as a synonym of ES.next, which includes the features that landed in later releases and the ones that never were parts of any specification.
来源:https://stackoverflow.com/questions/46347530/is-es7-only-composed-of-two-features