Skip to content

Commit

Permalink
nullish coalesce not avail < 14
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanb committed Jul 30, 2024
1 parent 9412765 commit 9510294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/json-csv-node/src/exporter.cts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type NodeExportOptions = ExportOptions & { encoding: BufferEncoding }
*/
export const checkOptions = (opts?: Partial<NodeExportOptions>): NodeExportOptions => {
const options: Partial<NodeExportOptions> = baseCheckOptions(opts)
options.encoding = opts.encoding ?? 'utf8'
options.encoding = opts.encoding || 'utf8'
return options as NodeExportOptions
}

Expand Down

0 comments on commit 9510294

Please sign in to comment.