Skip to content

intersectionBy difference with lodash #956

@bryanwonggy

Description

@bryanwonggy

The intersectionBy function in lodash removes duplicates while the intersectionBy function in es-toolkit doesn't.

For lodash-es, the intersectionBy function removes duplicates. Doc

See example

CleanShot 2025-02-10 at 13 28 52@2x

For es-toolkit, the intersectionBy function doesn't remove duplicates. Doc

See example

CleanShot 2025-02-10 at 13 28 57@2x

Was this intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedGood for new contributorsp0: major bugbugs in major functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions