check if string value is not in array of strings typescript code example Example: typescript check if element in array your_array.includes(the_element)