Skip to content

Comparing object with symbols as keys returns true #136

Open
@rafde

Description

@rafde

Example:

https://codesandbox.io/s/zen-ritchie-dkygj0?file=/src/index.js

const obj1 = {
  [Symbol.for("hi")]: 1
};
const obj2 = {
  [Symbol.for("hi")]: 2
};
console.log(fastDeepEqual(obj1, obj2)) // `true` when it should be `false`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions