You could create a synchronous wrapper around your logic, but it will only protect you at runtime. Basically, every method will use the slice method in order to split the array, in this case what makes this method different is the for loop. 5. New objects are allocated in Gen 0. Is there a way of handling huge arrays on client side without using JS or with JS? link brightness_4 code