z
z copied to clipboard
Pattern Matching for Javascript
Hello, I like to contribute with graphic designs, in opensource projects, so if you need something from me like a new logotype or something else just say it, Im here...
Have an option that checks if the matching is exhaustive, and if it isn't then have it immediately throw an error that the matching isn't exhaustive.
Thank you for a very useful library. It's a bit late to bring this up I think, but I thought I'd open an issue anyway; it seems like the current...
`typeof matchValue === 'object'` returns true when the `matchvalue` is an array which reproduces this bug: ``` const result = matches({ data: 123 })( (x = [1, 2]) => 'Is...
Strange but when I use some of the snippets with typescript, it always returns the result of the first param. For example ``` typescript import {matches} from 'z'; const person...
Reamde says ``` matches([1])( (a, b, tail) => 'Will not match here', (a = 2, tail = []) => 'Will not match here', (a = 1, tail) => 'Will match...
"native" nowadays means "a system app" -- mobile or desktop, i.e. "does not depend on a web-browser" what you wanted to say is "vanilla" -- b/c it dosnt need babel,...
Hello there, There seems to be an issue in the package.json. Currently, you have a fixed git checkout to `js-function-reflector` but that requires the user to have git available. While...
Let's say we have this: ``` matches(x)( async (x, xs) => { const thing = await somethingElse() ... }, (x) => { }, ) ``` Will this even...?
Currently I'm investigating the ability of implementing the following: ``` match({ a: 1, b: 2 })( ({ a = 3, b = 4 }) => 'doesnt match', ({ a =...