chore: update public repo

This commit is contained in:
desu-bot 2025-01-16 03:25:20 +00:00
parent 9891d7734d
commit 2423324540
No known key found for this signature in database
8 changed files with 531 additions and 0 deletions

View file

@ -8,3 +8,9 @@ export function getEnv<T>(key: string, parser?: (value: string) => T): T | strin
if (!parser) return value
return parser(value)
}
export function* chunks<T>(arr: T[], size: number) {
for (let i = 0; i < arr.length; i += size) {
yield arr.slice(i, i + size)
}
}