Ad
  • Custom User Avatar

    Since you are not re-assigning the value of newArr and just pushing value to the array, newArr can be a const. Nice job using splice, I was a little bit confuse on why in every lap the chunk starts on index 0, but makes since since splice is mutting the arr parameter.