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

So, I'm about to start using this lib in a project, but I figured out that there is no type declaration file for the project or a `@types/z` package

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.5&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.4 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2. Commits See full diff in compare view Maintainer changes This version was pushed to npm by oss-bot, a new releaser for y18n since your...

dependencies

I mean pattern matching is cool when it's a core language feature, but... ### Test Code ```js const { matches } = require('z') const zCompress = numbers => matches(numbers)( (x,...

Thanks for this library, it's really nice. If found an issue with an example on the web page. If you run this code, nothing matches, it returns undefined: ```javascript matches([1])(...

Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lodash.merge&package-manager=npm_and_yarn&previous-version=4.6.1&new-version=4.6.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

I'm running into what may be a conceptual issue rather than an actual issue. Are multi-character match variables supported? E.g. ` let string = "test"; match(string)( (s) => { console.log(s);...

bug
help wanted

Hello! First of all, great library, thank you! I just introduced `z` (version 1.0.8) to a project and I cannot seem to get it to work with strings. I created...

question

- Update dependencies version - Check for dependencies securities fixes - Use `js-function-reflector` as npm package instead git link

enhancement