-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since js is 0-indexed, we need to start from length-1 and go down. There was old code that was starting from length instead, which is out of range. This still used to work because there were checks inside for whether the value at that invalid index was "truthy". Just switching it to start at the right index is easier though
- Loading branch information
1 parent
e74c059
commit 88d95ff
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters