Is ES7 only composed of two features?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 12:37:31

问题


According to this blog: https://webapplog.com/es7-es8/

ES7 features are:

  1. Array.prototype.includes
  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!