In this series, we are going to show the EcmaScript features from 2015 to today.
ES2016 aka ES7 is the version of ECMAScript corresponding to the year 2016. This version does not include as many new features as those that appeared in ES6 (2015). However, some useful features have been incorporated.
This article introduces the features provided by ES2016 in easy code examples. In this way, you can quickly understand the new features without the need for a complex explanation.
➡️️ Exponentiation operator
includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate.
Array.prototype.includes return a Boolean which is true if the value valueToFind is found within the array.