We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853702c commit b4d159cCopy full SHA for b4d159c
src/lib/chunk.ts
@@ -1,5 +1,5 @@
1
export function chunk<T>(array: T[], size: number): T[][] {
2
- if (size <= 1) {
+ if (size < 1) {
3
return [array];
4
}
5
const result: T[][] = [];
src/nodes/Array.Chunk.ts
@@ -10,7 +10,7 @@ type P = {
10
type R = unknown[];
11
12
export const module: ModuleDefinition<P, R> = {
13
- version: '1.0.2',
+ version: '1.0.3',
14
moduleName: 'Array / Chunk',
15
description: `
16
Creates an array of items split into sub-arrays of specified size.
0 commit comments