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.1k stars 329 forks source link

fix(cloneDeep): maintain prototype when cloning class instances #794

Closed filipsobol closed 2 weeks ago

filipsobol commented 2 weeks ago

Addresses #777 and #801.

Benchmark results

Benchmark results

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 6:15pm
codecov-commenter commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.08%. Comparing base (0feabb4) to head (0745767).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/toss/es-toolkit/pull/794/graphs/tree.svg?width=650&height=150&src=pr&token=8N5S3AR3C7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss)](https://app.codecov.io/gh/toss/es-toolkit/pull/794?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) ```diff @@ Coverage Diff @@ ## main #794 +/- ## ========================================== - Coverage 99.11% 99.08% -0.04% ========================================== Files 305 305 Lines 2727 2727 Branches 800 800 ========================================== - Hits 2703 2702 -1 - Misses 23 24 +1 Partials 1 1 ```