Compruebe si la matriz no contiene valor javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango"); // true
var n = fruits.includes("Django"); // false
Vivacious Vendace