epoberezkin / fast-deep-equal

The fastest deep equality check with Date, RegExp and ES6 Map, Set and typed arrays support
MIT License
1.89k stars 101 forks source link

Comparing object with symbols as keys returns true #136

Open rafde opened 1 year ago

rafde commented 1 year ago

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`