Add Store

This commit is contained in:
Jon Staab
2024-03-26 13:31:13 -07:00
parent bc21228f04
commit 110ed26efe
8 changed files with 356 additions and 4 deletions
+2
View File
@@ -28,6 +28,8 @@ export const toIterable = (x: any) => isIterable(x) ? x : [x]
export const stripProtocol = (url: string) => url.replace(/.*:\/\//, "")
export const ensurePlural = <T>(x: T | T[]) => (x instanceof Array ? x : [x])
export const groupBy = <T>(f: (x: T) => string, xs: T[]) => {
const r: Record<string, T[]> = {}