z icon indicating copy to clipboard operation
z copied to clipboard

Pattern Matching for Javascript

Results 25 z issues
Sort by recently updated
recently updated
newest added

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...

question

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.

enhancement
help wanted

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...

enhancement

`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...

bug
help wanted

Reamde says ``` matches([1])( (a, b, tail) => 'Will not match here', (a = 2, tail = []) => 'Will not match here', (a = 1, tail) => 'Will match...

bug

"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,...

enhancement

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...

bug

Let's say we have this: ``` matches(x)( async (x, xs) => { const thing = await somethingElse() ... }, (x) => { }, ) ``` Will this even...?

enhancement

Currently I'm investigating the ability of implementing the following: ``` match({ a: 1, b: 2 })( ({ a = 3, b = 4 }) => 'doesnt match', ({ a =...

enhancement