Created
October 7, 2019 19:54
-
-
Save vitaly-t/6db195f880cf4fd06bb28837f94cbc52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stringify(value) { | |
if (value !== undefined) { | |
return JSON.stringify(value, (_, v) => typeof v === 'bigint' ? v.toString() : v); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment