Skip to content

Change to SameValueZero for comparisons #2453

Open
@jdalton

Description

@jdalton

Currently for comparisons in methods like difference, includes, indexOf, intersection, lastIndexOf,uniq, union a strict equality, === is used.

If this was tweaked a bit to SameValueZero, === + NaN matches, then it would allow for optimizations with Set and Map as well as cover the NaN match case.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions