Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Map and Set are not converted to Immutable.Map and Immutable.Set via Immutable.fromJS() #146

Open
Methuselah96 opened this issue Oct 17, 2020 · 0 comments
Labels
enhancement New feature or request from-original-repo

Comments

@Methuselah96
Copy link

From @marinovich on Thu, 11 Jul 2019 08:01:01 GMT

What happened

There is no way to create Immutable.Map and Immutable.Set from Map and Set via Immutable.fromJS()

How to reproduce

const set = new Set([1, 2, 3]);
const immutableSet = Immutable.fromJS(set);

console.log(set === immutableSet) // true

And the same with Map

Copied from original issue: immutable-js#1723

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request from-original-repo
Projects
None yet
Development

No branches or pull requests

1 participant