how to check whether an element is present in an array in typescript code example Example: typescript check if element in array your_array.includes(the_element)