now you want to split an array according to the specified size.
chunk (arr, 10)
divide the array into a sum less than or equal to 10. Please consult the gods
let arr = [15,1,3,4,3,4,10,7,19]
function chunk(arr, sum) {
}
// [[15], [1, 3, 4], [3, 4], [10], [7], [19]]