10000 Keep arrays as arrays · Issue #23 · mattphillips/deep-object-diff · GitHub
[go: up one dir, main page]

Skip to content
Keep arrays as arrays #23
Closed
Closed
@marciorodrigues87

Description

@marciorodrigues87

Hi guys! First of all, great work on this project!

I was thinking if you find it useful to keep arrays as arrays on the resulting diff object, something like:

      let difference = diff(l[key], r[key])
      if (Array.isArray(l[key])) {
        difference = Object.entries(difference).map(d => d[1])
      }

If it's interesting to you I can submit a PR to do that!

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

      0