update
Some checks failed
/ build (push) Failing after 4m39s

This commit is contained in:
Jorge Vargas 2025-03-15 11:17:33 -06:00
parent 2575d45f0b
commit 0ec019f959
16 changed files with 209 additions and 34 deletions

View file

@ -21,3 +21,8 @@ export async function parseForm(request: Request) {
const data = JSON.parse(dataInput)
return { ...data, ...rest }
}
export function getRandom<T>(array: T[]): T {
const randomIndex = Math.floor(Math.random() * array.length)
return array[randomIndex]
}