Skip to content

Set equality #46

Closed
Closed
@jmakeig

Description

@jmakeig

On Node 6.9:

const deepEqual = require("deep-equal"); // v1.0.1
deepEqual(new Set(['a', 'b', 'c']), new Set(['a', 'b', 'c'])); // true
deepEqual(new Set(['a', 'b', 'X']), new Set(['a', 'b', 'c'])); // true

Two sets should not be equal unless their constituents are the same. (Probably the same issue with Map instances too.)

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