File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,11 +242,9 @@ namespace ts {
242242 const count = array . length ;
243243 if ( count > 0 ) {
244244 let pos = 0 ;
245- let result = arguments . length <= 2 ? array [ pos ] : initial ;
246- pos ++ ;
245+ let result = arguments . length <= 2 ? array [ pos ++ ] : initial ;
247246 while ( pos < count ) {
248- result = f ( < U > result , array [ pos ] ) ;
249- pos ++ ;
247+ result = f ( < U > result , array [ pos ++ ] ) ;
250248 }
251249 return < U > result ;
252250 }
@@ -260,11 +258,9 @@ namespace ts {
260258 if ( array ) {
261259 let pos = array . length - 1 ;
262260 if ( pos >= 0 ) {
263- let result = arguments . length <= 2 ? array [ pos ] : initial ;
264- pos -- ;
261+ let result = arguments . length <= 2 ? array [ pos -- ] : initial ;
265262 while ( pos >= 0 ) {
266- result = f ( < U > result , array [ pos ] ) ;
267- pos -- ;
263+ result = f ( < U > result , array [ pos -- ] ) ;
268264 }
269265 return < U > result ;
270266 }
You can’t perform that action at this time.
0 commit comments