To use it pass
.includes() after the array and provide the value to check as the first argument. Here is an example.
var array = ['a', 'b', 'c']; result = array.includes('c'); console.log(result);
If the value is present
includes() will return