Skip to content

Commit

Permalink
use back quotes to correctly format chunk error message
Browse files Browse the repository at this point in the history
Co-authored-by: Boray Saygılıer  <[email protected]>
  • Loading branch information
querolita and boray authored Nov 27, 2024
1 parent d957245 commit 02c6d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/arrays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export { chunk, chunkString, zip, pad };
function chunk<T>(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))
Expand Down

0 comments on commit 02c6d56

Please sign in to comment.