Modern JavaScript Features in ES7 and ES8
ES7 Features
Array.prototype.includes()
The includes() method determines whether an array contains a specified element, returning true or false.
Basic Syntax:
const elements = ['x', 'y', 'z'];
console.log(elements.includes('x')); // true
console.log(elements.includes('w')); // false
Specifying Start Index:
const letters = ['a', 'b', 'c', 'd']; ...
Posted on Mon, 18 May 2026 11:30:22 +0000 by lookee