Skip to content

computing lastPrintableIndex only once instead of checking in every loop#1486

Merged
Janther merged 1 commit intomainfrom
removing-nested-loop
Apr 4, 2026
Merged

computing lastPrintableIndex only once instead of checking in every loop#1486
Janther merged 1 commit intomainfrom
removing-nested-loop

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Mar 30, 2026

the only big detail here is that findLastIndex was introduced in es2023. So in order to take full advantage of this I updated the target for the compilerOptions.
There was only one problem triggered by our current tests which was an unsafe access to an undefined value.

@Janther Janther requested a review from fvictorio March 30, 2026 02:26
@Janther Janther force-pushed the removing-nested-loop branch 2 times, most recently from cec64d8 to 0aa3bfe Compare March 30, 2026 12:17
@Janther Janther force-pushed the removing-nested-loop branch from ddaa983 to 6060ee5 Compare April 4, 2026 19:34
@Janther Janther merged commit 638ced5 into main Apr 4, 2026
7 checks passed
@Janther Janther deleted the removing-nested-loop branch April 4, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants