export function createChunks < T > ( fullArray , chunkSize ) { const chunkedArray = [ ] ; for ( let index = 0 ; index < fullArray . length ; index += chunkSize ) { const chunk = fullArray . slice ( index , index + chunkSize ) ; chunkedArray . push ( chunk ) ; } return chunkedArray ; }