Ad
  • Custom User Avatar

    Isn't the pageIndex function wrong in case you ask for the last item at the end of the array (the item which equals to collection.length)?
    It's returning -1 instead of the page index that equals to the last page.
    This works because the test used in this kata doesn't check for the very last item of the array.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution