Problem: You need to check if a value matches one of many potential values
Problem: You need to check if a value matches one of many potential values.
Solution: Consider array.includes.
This avoids declaring a bunch of repetitive conditionals.

Problem: You need to check if a value matches one of many potential values.
Solution: Consider array.includes.
This avoids declaring a bunch of repetitive conditionals.
