From 0de0e3ba3719333f3884aeff26992adf1688c6ec Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 10 Oct 2024 12:16:41 -0700 Subject: 2s maxwait --- lib/utils.ts | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/utils.ts') 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; -}, []); -- cgit v1.2.3