if not in list javascript code example
Example 1: typescript check if element in array
your_array.includes(the_element)
Example 2: how to check if item is in list js
var myList=["a", "b", "c"];
mylist.includes("d")//returns true or false
your_array.includes(the_element)
var myList=["a", "b", "c"];
mylist.includes("d")//returns true or false