Skip to content

Feature Request: Add equals method #93

@vikingair

Description

@vikingair

Could you also export a function called equals like so?

const equals = (a, b) => Object.keys(diff(a, b)).length === 0;

This would make it more obvious that additional packages like https://www.npmjs.com/package/fast-deep-equal, don't have to be installed alongside this package?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @vikingair

        Issue actions

          Feature Request: Add `equals` method · Issue #93 · mattphillips/deep-object-diff