Skip to content

Commit

Permalink
feat: jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus327 committed Mar 11, 2024
1 parent 3a57b41 commit 19e3224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@citrus327/match",
"version": "1.0.0",
"exports": "./src/index.ts"
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Matchers<T, R> = (Matcher<T, R> | FallbackMatcher<R>)[]
export const match = <T = any, R = any>(
target: T,
matchers: Matchers<T, R>,
) => {
): R | undefined => {
const [fallback, rest] = partition(matchers, (matcher) => {
const [identifier] = matcher
return identifier === _
Expand Down

0 comments on commit 19e3224

Please sign in to comment.