▲ | mwcz 4 days ago | |||||||||||||||||||||||||
Is that the case? I saw a talk by the author of lodash years ago and he touched on performance. The built-in functions are (or were?) implemented in JS, level terrain for a library like lodash to beat "native" performance. Lodash beat browser built-ins in some cases. The talk was ten years ago, though, so things may have changed. Perhaps more of the built-ins are written in C++ now. Here's the talk: https://youtu.be/2DzaOnOyCqE?si=McCMjzGopzSCoaCi | ||||||||||||||||||||||||||
▲ | mmis1000 3 days ago | parent [-] | |||||||||||||||||||||||||
It's not really about the performance. It's about the readability. The performance don't even matter if you are just grouping dozens or hundreds items on the gui. Abuse Lodash or Underscore everywhere means the code is not readable unless you know what is every used lodash function intended to do. Combing with weak type and undocumented business logic (and api types), it's a true nightmare experience to work with. It's probably irrelevant in a personal project. But it's a headache if you are collaborating. Sometimes it got even worse that original user don't know the exact specification of the utility function either. And the code works just by pure luck. (something like, the method work if all keys are numeric) It will give you a hard time to troubleshoot the problem if it happens. | ||||||||||||||||||||||||||
|