Skip to content

Commit 7b162bf

Browse files
chore: pre pr checks
1 parent cb59828 commit 7b162bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/lib/transform-to-csv.lib.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Transforms an array into a CSV formatted string.
55
*
66
* A CSV header / row is the same regardless of transformation. The header is commonly the first row.
7-
* Therefore, this function works for both a header and rows.
7+
* Therefore, this function works for both a header and row.
88
*
99
* The function can transform most common types:
1010
* - Objects are stringified and parsed
@@ -27,13 +27,13 @@ function TransformArrayToCSVRow(arrayToTransform) {
2727
return undefined
2828
}
2929

30-
const transformedArrayToRow = arrayToTransform
30+
const transformedRow = arrayToTransform
3131
.map((value) => {
3232
return _transformValueToCSV(value)
3333
})
3434
.join(',')
3535

36-
return transformedArrayToRow + '\n'
36+
return transformedRow + '\n'
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)