Skip to content

Convert non-raw objects #198

Closed
Closed
@tolmasky

Description

@tolmasky

The docs for fromJS specify that it will only work on raw objects:

Immutable.fromJS is conservative in it's conversion. It will only convert

  • arrays which pass Array.isArray to Lists, and only raw objects (no custom
  • prototype) to Map.

I have a non-raw object that I want to convert, is there any way to override this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions