aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.ts')
-rw-r--r--lib/utils.ts6
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;
-}, []);