es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

`intersectionBy` difference with lodash

Open bryanwonggy opened this issue 8 months ago • 1 comments

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?

bryanwonggy avatar Feb 10 '25 05:02 bryanwonggy