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
There are lots of methods already defined on the prototypes of the types.
I propose two more methods. The idea is to have the same capability as 'fromJS' and 'toJS' as seen on 'immutable-js' On all the immutable types:
This would return a new mutable object/array/Map/Set with the same data as the Immutable value. It will not mutate the Immutable Type.
On the other hand, the Object.prototype, Array.prototype, Map.prototype and Set.prototype, should get one extra method:
This would return a new Immutable type with the same values as the ones in the mutable types.
undefined
These methods will also be recursive, as in all sub values, will be made mutable/immutable as well.
Polyfills for these methods are fairly trivial, and I'll be posting them here in more comments soon.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are lots of methods already defined on the prototypes of the types.
I propose two more methods. The idea is to have the same capability as 'fromJS' and 'toJS' as seen on 'immutable-js'
On all the immutable types:
.toMutable
This would return a new mutable object/array/Map/Set with the same data as the Immutable value. It will not mutate the Immutable Type.
On the other hand, the Object.prototype, Array.prototype, Map.prototype and Set.prototype, should get one extra method:
.toImmutable
This would return a new Immutable type with the same values as the ones in the mutable types.
undefined
These methods will also be recursive, as in all sub values, will be made mutable/immutable as well.
Polyfills for these methods are fairly trivial, and I'll be posting them here in more comments soon.
The text was updated successfully, but these errors were encountered: