Skip to content

Different classes #73

Open
Open
@kownacki

Description

@kownacki

Hi,

deepDiff.diff({}, []) shows difference but this doesn't:

function A() {}

var a = new A();
var b = {};

deepDiff.diff(a, b)

I think it would be reasonable to consider two objects of different classes as different - just as we consider [] to be different from {}.

Is it a bug, negligence or deliberate move?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions