# How to check if a JavaScript array contains a specific value

> Learn how to check if a JavaScript array contains a specific value using the includes() method, which returns true or false depending on whether it is found.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2019-08-29 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/how-to-check-array-contains-item/

Use the `includes()` method on the array instance.

For example:

```js
['red', 'green'].includes('red') //true ✅

['red', 'green'].includes('yellow') //false ❌
```
