Skip to content

Provide Change Path as An Array Instead of String #2

@iddan-flycode

Description

@iddan-flycode

Change path should be an array rather than a string as it loses important information about the path.
For example:

jsonDeepDiffList(null, [1])

and:

jsonDeepDiffList(null, {'0': 1})

will yield the same change object:

{type: "add", path: "0", before: undefined, after: 1}

Even though in one an array was created and in the other an object was created

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