This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 17eec14
committed
Auto merge of rust-lang#80569 - notriddle:patch-3, r=jyn514
Use Array.prototype.filter instead of open-coding
Part of rust-lang#79052, originally suggested in rust-lang#79052 (comment) by `@jyn514`
Besides making main.js smaller (always a plus), this also performs better by using the optimized filter implementation in your browser's JavaScript engine (according to `@GuillaumeGomez,` an 84% performance improvement).1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
| 670 | + | |
677 | 671 | | |
678 | 672 | | |
679 | 673 | | |
| |||
0 commit comments