File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
* Transforms an array into a CSV formatted string.
5
5
*
6
6
* 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 .
8
8
*
9
9
* The function can transform most common types:
10
10
* - Objects are stringified and parsed
@@ -27,13 +27,13 @@ function TransformArrayToCSVRow(arrayToTransform) {
27
27
return undefined
28
28
}
29
29
30
- const transformedArrayToRow = arrayToTransform
30
+ const transformedRow = arrayToTransform
31
31
. map ( ( value ) => {
32
32
return _transformValueToCSV ( value )
33
33
} )
34
34
. join ( ',' )
35
35
36
- return transformedArrayToRow + '\n'
36
+ return transformedRow + '\n'
37
37
}
38
38
39
39
/**
You can’t perform that action at this time.
0 commit comments