Skip to content

isPlainObject() util returns false for objects without prototypes #1074

Closed
@rgrove

Description

@rgrove

Object.create(null) produces a plain object whose prototype is null. Lodash's isPlainObject() correctly treats this as a plain object, but the isPlainObject() helper introduced in #936 does not. This broke our app, since we have a number of selectors which return prototypeless objects.

PR to follow.

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