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

feat(compat): Add `map` function

Open iDevGon opened this issue 1 year ago • 2 comments

#301

This pull request implements the map function, which behaves similarly to the map function in lodash

The map function takes a collection and an iteratee function, applies the iteratee to each element of the collection, and returns a new array with the transformed results.

Below is a benchmark comparing our map function to lodash's map.

스크린샷 2024-09-11 23 45 55

iDevGon avatar Sep 11 '24 15:09 iDevGon

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 Sep 12, 2024 2:43pm

vercel[bot] avatar Sep 11 '24 15:09 vercel[bot]

Thanks for your pull request!

raon0211 avatar Sep 13 '24 06:09 raon0211

Closing the pull request since a new one was opened :)

raon0211 avatar Dec 07 '24 14:12 raon0211