Closed mouadennaciri closed 1 year ago
typeof matchValue === 'object' returns true when the matchvalue is an array which reproduces this bug:
typeof matchValue === 'object'
matchvalue
const result = matches({ data: 123 })( (x = [1, 2]) => 'Is array', (x = { data: 123 }) => 'is object' ) // 'is array'
typeof matchValue === 'object'
returns true when thematchvalue
is an array which reproduces this bug: