how to check item contains in array in react js code example
Example: react check if array contains value
console.log(['joe', 'jane', 'mary'].includes('jane')); //true
console.log(['joe', 'jane', 'mary'].includes('jane')); //true