mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-10 04:01:37 +02:00
Fix setup wizard when there's >20 channels
This commit is contained in:
parent
30c8068363
commit
f941dbbddd
5 changed files with 95 additions and 15 deletions
10
src/utils/arrays.ts
Normal file
10
src/utils/arrays.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
export const chunk = <T>(arr: T[], len: number) => {
|
||||
const chunks = [];
|
||||
|
||||
let i = 0;
|
||||
while (i < arr.length) {
|
||||
chunks.push(arr.slice(i, i += len));
|
||||
}
|
||||
|
||||
return chunks;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue