We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
There already seems to be a toJSON method on the prototypes of the immutable types.
toJSON
There should be a new method of JSON as well.
JSON
JSON.parseImmutable
This would return an immutable values instead of a mutable one.
In case the toImmutable method is added to the prototypes, this would as simple as this, behind the scenes:
toImmutable
JSON.parseImmutable = (string) => JSON.parse(string).toImmutable()
The actual implementation will be smarter in that it will not throw an error if the JSON value is already immutable (string/number/bool).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There already seems to be a
toJSON
method on the prototypes of the immutable types.There should be a new method of
JSON
as well.JSON.parseImmutable
This would return an immutable values instead of a mutable one.
In case the
toImmutable
method is added to the prototypes, this would as simple as this, behind the scenes:The actual implementation will be smarter in that it will not throw an error if the JSON value is already immutable (string/number/bool).
The text was updated successfully, but these errors were encountered: