react check if array includes the values of other array 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