Skip to content

differenceOfObjects #27

Open
Open
@CMEONE

Description

@CMEONE

We should have a method that finds the difference of two objects (any keys that are present in the second object are removed from the first), like this:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"b": 3, "c": 4}) => {"a": 1}

or:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"a": 3, "b": 4}) => {}

or:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"c": 3, "d": 4}) => {"a": 1, "b": 2}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions