We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try this code with both JSON.stringify and safe-stable-stringify:
const keys: Array<any> = []; JSON.stringify(['a', 'b'], function (key: any, value: any) { keys.push(key); return value; }); console.log(jsonStringifyKeys);
And then you will find that JSON.stringify passes strings "0" and "1" to the replacer function, while safe-stable-stringify passes numbers 0 and 1.
The text was updated successfully, but these errors were encountered:
5c078f2
Thanks for the report @james-hu! This is fixed in 2.4.3.
Sorry, something went wrong.
No branches or pull requests
Try this code with both JSON.stringify and safe-stable-stringify:
And then you will find that JSON.stringify passes strings "0" and "1" to the replacer function, while safe-stable-stringify passes numbers 0 and 1.
The text was updated successfully, but these errors were encountered: