regex char or char

JavaScript
//check if have "i" or "o"
/i|o/.test(var)
Source

Also in JavaScript: