Created
October 7, 2019 19:52
-
-
Save vitaly-t/f340b0a794e7f80a099742e35207752d 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