-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
Description
Strange but when I use some of the snippets with typescript, it always returns the result of the first param. For example
import {matches} from 'z';
const person = { name: 'Maria' }
matches(person)(
(x = { name: 'John' }) => console.log('John you are not welcome!'),
(x) => console.log(`Hey ${x.name}, you are welcome!`)
)returns John you are not welcome.