// A sometimes useful shorthand if (value === 1 || value === 'one' || value === 2 || value === 'two') { } // This achieves the same: // Can be useful for long strings etc.. if ([1, 'one', 2, 'two'].indexOf(value) >= 0) { }