Array `includes`
using the includes method to process elements in an array
We'll cover the following...
We'll cover the following...
Even in ES5, it was easy to figure out when an element is a member of an array.
Press + to interact
Node.js
console.log([1, 2, 3].indexOf( 2 ) >= 0);
In ES2016, the ...