top of page

bottom of page
function processChunk() { // Process a small chunk of data if (dataRemaining > 0) { // Process next chunk dataRemaining--; requestAnimationFrame(processChunk); // Schedule next chunk } } processChunk(); // Start processing // Specific import to reduce the size import uniq from 'lodash/uniq'; const uniqueArray = uniq(array);