check if an array contains an elemnt in js ? code example
Example 1: typescript check if element in array
your_array.includes(the_element)
Example 2: javascript element in array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");