Add abort to thunk

This commit is contained in:
Jon Staab
2024-10-16 12:07:57 -07:00
parent ac3c2e7d0b
commit f7e570d868
5 changed files with 66 additions and 14 deletions
+2
View File
@@ -15,6 +15,8 @@ export const noop = (...args: unknown[]) => undefined
export const first = <T>(xs: T[], ...args: unknown[]) => xs[0]
export const ffirst = <T>(xs: T[][], ...args: unknown[]) => xs[0][0]
export const last = <T>(xs: T[], ...args: unknown[]) => xs[xs.length - 1]
export const identity = <T>(x: T, ...args: unknown[]) => x