Replace Comparisons with Any
Use the Any method to replace conditionals.
We'll cover the following...
We'll cover the following...
How to refactor OR operators inside a conditional
When we need to check if a value belongs to a set of valid options, we use an if statement with the comparisons separated by the OR (||) operator. ...