Add filter method to repository

This commit is contained in:
Jon Staab
2024-05-07 14:45:10 -07:00
parent 199dbca32a
commit f75f24c2ec
5 changed files with 81 additions and 21 deletions
+2
View File
@@ -17,6 +17,8 @@ export const last = <T>(xs: T[], ...args: unknown[]) => xs[xs.length - 1]
export const identity = <T>(x: T, ...args: unknown[]) => x
export const always = <T>(x: T, ...args: unknown[]) => () => x
export const inc = (x: number | Nil) => (x || 0) + 1
export const dec = (x: number | Nil) => (x || 0) - 1