I have a large array that can range from 1 to 600K records. To work with this big array, I need to break it into smaller chunks to carry out operations.
How can I achieve this effectively?
Here is my proposed solution: The challenge I am facing is not knowing the exact number of elements in the array, making it difficult to determine the chunk size by dividing it into ten parts.
for(let i = 0; i < largeArray.length; i += largeArray.length/10) {
var chunk = largeArray.slice(i, what_is_the_chunk_size);
}