ECMAScript 7 functionalities
Until the date that this book is being written, only one functionality is confirmed to be shipped with ES7 (or ECMAScript 2016), which is called Array.prototype.includes
.
There are other functionalities that are almost ready and may be included in ES7 but still not confirmed, which are:
- The exponentiation operator
- SIMD.JS - SIMD APIs + polyfill
- Async functions
Object.values
/Object.entries
- String padding
- Trailing commas in function parameter lists and calls
The exponentiation operator may come in handy when working with math, and it simplifies the Math.pow(2, 3)
code to 2 ** 3
, where **
is designed to be the new exponentiation operator.
You will learn more about the Array.prototype.includes
functionality in the next Chapter ...
Get Learning JavaScript Data Structures and Algorithms - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.