set state if array includes part of value code example Example: react check if array contains value console.log(['joe', 'jane', 'mary'].includes('jane')); //true