TypeScript Sprawdź, czy element w tablicy

your_array.includes(the_element)
Annoyed Antelope