Instancja Użyj in_array w JavaScript
const array1 = [1, 2, 3];
console.log(array1.includes(2));
Mohamad
const array1 = [1, 2, 3];
console.log(array1.includes(2));