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
6.25k stars 263 forks source link

Support for fromPairs #440

Closed knott11 closed 2 days ago

knott11 commented 2 weeks ago

Hello @raon0211, if you need it, I can add a fromPairs function

raon0211 commented 2 weeks ago

Hello, thanks for your suggestion! I think you could implement this by Object.fromEntries(...) and add it to our compat library.

raon0211 commented 2 days ago

https://es-toolkit.slash.page/reference/compat/object/fromPairs.html#frompairs