Skip to content

feat: Add diffWith method #179

@ardalanamini

Description

@ardalanamini

What do you need?

This method is like difference except that it accepts comparator which is invoked to compare elements of array to values. The order and references of result values are determined by the first array. The comparator is invoked with two arguments: (arrVal, othVal).

Purposed definition:

function diffWith(array: unknown[], values: unknown[], comparator: (arrVal: unknown, othVal: unknown) => boolean): unknown[];

Contact Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature, improvement or requesttriagePull requests & Issues in need of review for relevancy/actionability & readiness

    Type

    No type

    Projects

    Status

    🆕 New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions