Skip to content

Commit

Permalink
fix: export stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Aug 29, 2023
1 parent ae7ef55 commit 18df3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonb.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function parse(s) {
return parseJson(s, reviver)
}

function stringify(data) {
export function stringify(data) {
if (data === undefined) return undefined
if (data === null) return 'null'
if (Number.isNaN(data)) return 'null'
Expand Down

0 comments on commit 18df3d8

Please sign in to comment.