diff options
| author | Adam Soltys <[email protected]> | 2024-10-10 12:16:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-10 12:17:05 -0700 |
| commit | 0de0e3ba3719333f3884aeff26992adf1688c6ec (patch) | |
| tree | c0ed293eb942ca34c412f952cb20f049e4b50300 /lib/utils.ts | |
| parent | d734c424f19bbec89274d828c3a2b70dd3ef221a (diff) | |
| download | coinos-server-0de0e3ba3719333f3884aeff26992adf1688c6ec.tar.gz coinos-server-0de0e3ba3719333f3884aeff26992adf1688c6ec.zip | |
2s maxwait
Diffstat (limited to 'lib/utils.ts')
| -rw-r--r-- | lib/utils.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/utils.ts b/lib/utils.ts index 7a663c60..a805f343 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -168,9 +168,3 @@ export function formatReceipt(items, currency) { } export let t = ({ language = "en" }) => locales[language]; - -export let chunk = (array, chunkSize) => array.reduce((all, one, i) => { - const chunkIndex = Math.floor(i / chunkSize); - (all[chunkIndex] = all[chunkIndex] || []).push(one); - return all; -}, []); |
