Felipe Nascimento de Moura (2020-01-31T13:26:45.000Z)
forbes at lindesay.co.uk (2020-03-18T09:35:57.157Z)
Very interesting. Once I wanted (and would have used a lot) something like a `switchMatch`. It would work like this: ```js switchMatch(value) { case /\d+/: { ... } case /\s+/: { ... } case /.../: { ... } default: { console.log('Didn't match any of the options'); } } ``` Of course you can have a regex like `(\d+)|(\s+)|...` but it would be more readable and would allow situations like yours to be easily solved, read, thought and taught.