@@ -13,20 +13,20 @@ const params = [
13
13
console . log ( params ) ;
14
14
15
15
// Additional test cases
16
- const test1 = [ 1 , null , 2 ] . join ( '' ) ;
17
- const test2 = [ 1 , undefined , 2 ] . join ( '' ) ;
18
- const test3 = [ 1 , variable ?. notExist , 2 ] . join ( '' ) ;
19
- const test4 = [ 1 , variable . data ?. value , 2 ] . join ( '' ) ;
20
- const test5 = [ 1 , obj ?. a ?. b ?. c , 2 ] . join ( '' ) ;
16
+ export const test1 = [ 1 , null , 2 ] . join ( '' ) ;
17
+ export const test2 = [ 1 , undefined , 2 ] . join ( '' ) ;
18
+ export const test3 = [ 1 , variable ?. notExist , 2 ] . join ( '' ) ;
19
+ export const test4 = [ 1 , variable . data ?. value , 2 ] . join ( '' ) ;
20
+ export const test5 = [ 1 , obj ?. a ?. b ?. c , 2 ] . join ( '' ) ;
21
21
22
22
// Function calls can return null/undefined
23
- const test6 = [ 1 , someFunction ( ) , 2 ] . join ( '' ) ;
24
- const test7 = [ 1 , obj . method ( ) , 2 ] . join ( '' ) ;
23
+ export const test6 = [ 1 , someFunction ( ) , 2 ] . join ( '' ) ;
24
+ export const test7 = [ 1 , obj . method ( ) , 2 ] . join ( '' ) ;
25
25
26
26
// Identifiers can be null/undefined
27
- const test8 = [ 1 , unknownVar , 2 ] . join ( '' ) ;
27
+ export const test8 = [ 1 , unknownVar , 2 ] . join ( '' ) ;
28
28
29
29
// Other expressions that can be null/undefined
30
- const test9 = [ 1 , condition ? null : 'x' , 2 ] . join ( '' ) ;
31
- const test10 = [ 1 , await promise , 2 ] . join ( '' ) ;
32
- const test11 = [ 1 , new Constructor ( ) , 2 ] . join ( '' ) ;
30
+ export const test9 = [ 1 , condition ? null : 'x' , 2 ] . join ( '' ) ;
31
+ export const test10 = [ 1 , await promise , 2 ] . join ( '' ) ;
32
+ export const test11 = [ 1 , new Constructor ( ) , 2 ] . join ( '' ) ;
0 commit comments