const array = [1...7]
so i have this array as u can see the length is 7, so i want the result like this
[1, 2, 3, 4, 5] and [6, 7]
same for the array below
const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
the length is 11, therefore the result i want should be
[1, 2, 3, 4, 5] and [7, 8, 9, 10] and [11]
why 11 only? because i want to seperate array lengths by 5