toss / es-toolkit

A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
https://es-toolkit.slash.page
Other
7.07k stars 325 forks source link

fix(differenceBy): Update `differenceBy` function to handle array-like objects and filter out invalid values #790

Closed mass2527 closed 1 week ago

mass2527 commented 2 weeks ago

Since the differenceBy(compat) function needs to pass the test cases in the difference-methods spec, I added it to our spec.

After adding this test, I found that two tests were failing, so I fixed them:

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2024 2:22pm