Skip to content

omit doesn't behave the same since 4.17 #2819

@tleunen

Description

@tleunen

I'm using omit() to remove a few properties before checking if 2 objects are equals with shallowEqual and since the update, I have a few failing tests in my project. After a quick investigation, I've found out objects are causing the issue.

This returns false instead of true:

shallowEqual(
  omit({
    source: {}
  }, 'sth'),
  omit({
    source: {}
  }, 'sth')
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions