From 02c6d5680be008c06a60544a055da629a8c22d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=AFs=20Querol?= Date: Wed, 27 Nov 2024 13:46:43 +0100 Subject: [PATCH] use back quotes to correctly format chunk error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Boray Saygılıer --- src/lib/util/arrays.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/arrays.ts b/src/lib/util/arrays.ts index 99a33fc0a..f3a59b538 100644 --- a/src/lib/util/arrays.ts +++ b/src/lib/util/arrays.ts @@ -5,7 +5,7 @@ export { chunk, chunkString, zip, pad }; function chunk(array: T[], size: number): T[][] { assert( array.length % size === 0, - 'chunk(): invalid input length, it must be a multiple of ${size}' + `chunk(): invalid input length, it must be a multiple of ${size}` ); return Array.from({ length: array.length / size }, (_, i) => array.slice(size * i, size * (i + 1))