4 ms·
So, there are example use cases in the proposal [1]. I think it's meant to standardize how we handle conditional inputs or shapes of inputs (some people use if
by dvdhnt 8y ago
So, there are example use cases in the proposal [1]. I think it's meant to standardize how we handle conditional inputs or shapes of inputs (some people use if statements, some switch, and others store it all in an object and use keys).
1. https://github.com/tc39/proposal-pattern-matching#motivating-examples https://github.com/tc39/proposal-pattern-matching#motivating...