Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not use lodash just because of 2 functions

See original GitHub issue

Hello! I think this awesome project can easily get rid of unneeded “lodash” dependency and just implement “random” and “sortBy” functions by itself.

We don’t use lodash in our project, but it still gets into codebase just because of this react-sortable-hoc.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

iamrommelcommented, Aug 15, 2017

I think you can just import the lodash.random ( which is thinner, or lodash.sortBy.

You can actually chopped any modules from lodash and just import that. I think it will consumed less space.

claudericcommented, May 17, 2018

Removed lodash dependency in 0.7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

It's time to let go of lodash - Community 👨🏼‍💻🚀🎓
While lodash offeres a tremendous library of functionality, much of it is no longer required, and the cost of importing lodash into your ......
Read more >
you-dont-need/You-Dont-Need-Lodash-Underscore - GitHub
List of JavaScript methods which you can use natively + ESLint Plugin - GitHub - you-dont-need/You-Dont-Need-Lodash-Underscore: List of JavaScript methods ...
Read more >
Pure JavaScript Functions as a Replacement for Lodash | by RC
Functional programming typically avoids using mutable state and favors side-effect free functions and immutable data instead. The key point to ...
Read more >
14 functions I made to dump lodash and reduce my bundle ...
I just need a function I can debounce, a maximum time to wait and the ability to flush any pending calls or cancel...
Read more >
10 Lodash functions everyone should know - Medium
Why use Lodash ? It will help you deal with all types of object and you will save you time by not coding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found