Skip to content

change the return value of the diff API to an object #180

Open
@shota-kizawa

Description

@shota-kizawa

The return value is a boolean, which is difficult to use, so I want to change the return value of the diff API to an object.
For example,

const jsonDiff = require('json-diff')

return jsonDiff.diff({ foo: 'bar' }, { foo: 'baz' });

// Return:
// { foo: { __old: 'bar', __new: 'baz' } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions