move beat-saver service in main

This commit is contained in:
MathieuG-P
2022-12-12 21:53:43 +01:00
parent 9050d84b03
commit 31d8925615
10 changed files with 112 additions and 48 deletions
+7
View File
@@ -0,0 +1,7 @@
export function splitIntoChunk<T = unknown>(arr: T[], chunkSize: number): T[][] {
const resArr = [];
for(let i = 0; i < arr.length; i += chunkSize){
resArr.push(arr.slice(i, i + chunkSize));
}
return resArr;
}