Courses / JavaScript
13. Array.prototype.includes()
Determines whether an array includes a certain value among its entries, returning true or false.
1 min read Chapter 13 of 99
JavaScript
Array.prototype.includes()
Array.prototype.includes() checks if a value exists in an array.
"I want to quickly find out if my list contains a specific item."
Array.prototype.includes() is a method that returns true if an array contains a certain value, and false otherwise.
"I want to quickly find out if my list contains a specific item."
Array.prototype.includes() is a method that returns true if an array contains a certain value, and false otherwise.