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
As defined here, a function in a JSON will be detected to be an object and shown empty.:
react-json-view-lite/src/DataTypeDetection.ts
Line 26 in 8eded61
const data = { func: () => "Test" }
{ "func": {} }
console.log(func instanceof Object) // true console.log(typeof func) // 'function'
func.toString()
func: function()
{ "func": function() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As defined here, a function in a JSON will be detected to be an object and shown empty.:
react-json-view-lite/src/DataTypeDetection.ts
Line 26 in 8eded61
Data
Output
{ "func": {} }
Demo
func.toString()
.func: function()
with a dedicated class.Expected
The text was updated successfully, but these errors were encountered: