@@ -60,14 +60,14 @@ describe('asyncReduce()', () => {
6060 } ) ;
6161
6262 it ( 'returns type string given function that returns Promise<string> and no initial value' , async ( ) => {
63- const result = await asyncReduce ( [ 'a' , 'b' , 'c' ] , async ( temp , cur ) => cur ) ;
63+ const result = await asyncReduce ( [ 'a' , 'b' , 'c' ] , async ( _temp , cur ) => cur ) ;
6464
6565 assertType < string > ( result ) ;
6666
6767 expect ( result ) . toBe ( 'c' ) ;
6868
6969 // Sanity check
70- const resultSync = [ 'a' , 'b' , 'c' ] . reduce ( ( temp , cur ) => cur ) ;
70+ const resultSync = [ 'a' , 'b' , 'c' ] . reduce ( ( _temp , cur ) => cur ) ;
7171
7272 assertType < string > ( resultSync ) ;
7373
@@ -99,7 +99,7 @@ describe('asyncReduce()', () => {
9999 it ( 'returns type number[] given function that returns Promise<number> and initial value of type number' , async ( ) => {
100100 const result = await asyncReduce (
101101 [ 'a' , 'b' , 'c' ] ,
102- async ( temp , cur , idx ) => [ ...temp , idx ] ,
102+ async ( temp , _cur , idx ) => [ ...temp , idx ] ,
103103 [ 0 ] ,
104104 ) ;
105105
@@ -109,7 +109,7 @@ describe('asyncReduce()', () => {
109109
110110 // Sanity check
111111 const resultSync = [ 'a' , 'b' , 'c' ] . reduce (
112- ( temp , cur , idx ) => {
112+ ( temp , _cur , idx ) => {
113113 temp . push ( idx ) ;
114114 return temp ;
115115 } ,
0 commit comments