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
Uneval is deprecated and removed from modern browsers:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features#acquiring_source_text
One should use fn.toString() for functions and JSON.stringify() for data.
fn.toString()
JSON.stringify()
> function sum(a, b) { return a + b; } > sum.toString() 'function sum(a, b) { return a + b; }'
The text was updated successfully, but these errors were encountered:
Thanks @d9k for pointing out. The answer has been updated.
Sorry, something went wrong.
No branches or pull requests
Uneval is deprecated and removed from modern browsers:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features#acquiring_source_text
One should use
fn.toString()
for functions andJSON.stringify()
for data.The text was updated successfully, but these errors were encountered: