lib/Split Array into Smaller Chunks.js
// program to split array into smaller chunks
program to split array into smaller chunks
program to split array into smaller chunks
function splitIntoChunk(arr, chunk) {
    for (i=0; i < arr.length; i += chunk) {
        let tempArray;
        tempArray = arr.slice(i, i + chunk);
        console.log(tempArray);
    }
}
function splitIntoChunk ( arr , chunk ) { for ( i = 0 ; i < arr . length ; i += chunk ) { let tempArray ; tempArray = arr . slice ( i , i + chunk ) ; console . log ( tempArray ) ; } }
program to split array into smaller chunks
program to split array into smaller chunks