Map and Set are not converted to Immutable.Map and Immutable.Set via Immutable.fromJS()
Methuselah96 opened this issue · 0 comments
Methuselah96 commented
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) // trueAnd the same with Map
Copied from original issue: immutable-js#1723