Open robross0606 opened 2 years ago
I would have thought of using _.includes
but that takes the collection as its first value so I'm not sure how that would work with |
syntax.
I've gone over everything in here and I'm kinda shocked that there doesn't seem to be built-in way to check if a simple string matches one of a set of values without using Regex. 😮
How do I match a field that can be any of multiple values, such as from an Enum of possible options? Effectively an "or" pattern?