javascript includers amouynt code example
Example 1: typescript check if element in array
your_array.includes(the_element)
Example 2: react check if array contains value
console.log(['joe', 'jane', 'mary'].includes('jane')); //true
your_array.includes(the_element)
console.log(['joe', 'jane', 'mary'].includes('jane')); //true