What is the difference between ImmutableJS Map() and fromJS()?
In this example, var a = {address: {postcode: 5085}} var d = Immutable.Map(a); Here, d.get(‘address’) is immutable. It’s value cannot change to any other objects. We can only create a new Object from the existing object using the Immutable.Map.set() function of ImmutableJS. But, the object referenced by d.get(‘address’) i.e, {postcode:5085} is a standard JavaScript object. … Read more