finding an element ina na array in js

JavaScript
console.log(['joe', 'jane', 'mary'].includes('jane')); //true
Source

Also in JavaScript: