Skip to content

Commit

Permalink
chore: pre pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangoulding committed Feb 3, 2025
1 parent cb59828 commit 7b162bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/transform-to-csv.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Transforms an array into a CSV formatted string.
*
* A CSV header / row is the same regardless of transformation. The header is commonly the first row.
* Therefore, this function works for both a header and rows.
* Therefore, this function works for both a header and row.
*
* The function can transform most common types:
* - Objects are stringified and parsed
Expand All @@ -27,13 +27,13 @@ function TransformArrayToCSVRow(arrayToTransform) {
return undefined
}

const transformedArrayToRow = arrayToTransform
const transformedRow = arrayToTransform
.map((value) => {
return _transformValueToCSV(value)
})
.join(',')

return transformedArrayToRow + '\n'
return transformedRow + '\n'
}

/**
Expand Down

0 comments on commit 7b162bf

Please sign in to comment.