There was an error while loading. Please reload this page.
1 parent aee8b70 commit 57b550dCopy full SHA for 57b550d
chunk_array.js
@@ -0,0 +1,10 @@
1
+function chunk(arr, size) {
2
+ const result = [];
3
+
4
+ for (let i = 0; i < arr.length; i += size) {
5
+ result.push(arr.slice(i, i + size));
6
+ }
7
8
+ return result;
9
+}
10
0 commit comments