davidmarkclements / rfdc

Really Fast Deep Clone
MIT License
635 stars 24 forks source link

Deep equality comparison feature #27

Closed edgmark closed 2 years ago

edgmark commented 2 years ago

Do you think it's within the scope of the project to support deep equal comparisons?

const obj1 = { a: 1, b: "2", c: { d: false } }
const obj2 = { a: 1, b: "2", c: { d: false } }
const equal = rfdc.equal(obj1, obj2) // true

const obj3 = { a: 1, b: "2", c: { d: true } }
const equal = rfdc.equal(obj1, obj3) // false
mcollina commented 2 years ago

I think it would be outside of the scope of the technique used in this module.