Skip to content

Update to 4.0.0 deepEqual #25

Closed

Description

Activity

  1. johman10 commented on Oct 13, 2017

    @johman10

    For other people finding this issue.
    This library has the option to sent in options and it accepts a strict mode.
    To do what is requested here one can do:

    import deepEqual from 'deep-equal';
    
    const array = { test: ['1', '2', '3'] };
    const array2 = { test: [1, 2, 3] };
    
    deepEqual(array, array2) // false
    deepEqual(array, array2, { strict: true }); // true

    Related code can be found here: https://github.com/substack/node-deep-equal/blob/master/index.js#L17

    Hope this helps others finding this an issue. ;)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions