Skip to content
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was 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

Description

@Methuselah96

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions