Skip to content

isPlainObject() util returns is still incorrect #1207

Closed
@alex89lj

Description

@alex89lj

I am glad that this fix was merged(#1075), but it seems to be not perfect.
isPlainObject(Object.create(null))=>true,
isPlainObject(Object.create({}))=>false???.
image
This is correct in redux's "isPlainObject" function.
This is my PR:https://github.com/reduxjs/react-redux/pull/1005/files

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