{{ message }}
Repository navigation
Commit b26ec48
authored
Fixed out of spec behavior of array.reduce (TypeScriptToLua#731)
* Fixed out of spec behavior of array.reduce
* Moved select declarations from ArrayReduce to lualib declaration files
* Fixed issue in reduce with undefined returning callback
* Changed reduce loop from while to for for performance reasons
* Cleaned up code a little from PR feedback
* testcase formatting1 parent c1e77c9 commit b26ec48
4 files changed
Lines changed: 38 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||

0 commit comments