Use specific lodash library instead of underscore
See original GitHub issueCurrently, the component is using the full underscore. Would it be possible to remove the unnecessary functions and only use and import the specific functions from lodash instead?
Maybe only throttle would be needed.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Difference between lodash and Underscore - GeeksforGeeks
The lodash and UnderScore both are utility libraries from JavaScript which helps make it easier by providing utils which makes, working with ...
Read more >Differences between Lodash and Underscore.js - Stack Overflow
Underscore _.groupBy supports an iteratee that is passed the parameters (value, index, originalArray) , while in Lodash, the iteratee for _.
Read more >you-dont-need/You-Dont-Need-Lodash-Underscore - GitHub
Lodash and Underscore are great modern JavaScript utility libraries, ... by a key in an object you must use x => x.key instead...
Read more >Lodash tutorial - introducing JavaScript Lodash library - ZetCode
By convention, Lodash module is mapped to the underscore character. Lodash installation. First, we install the Lodash library. $ npm init -y $ ......
Read more >Lodash in 2022: necessary or obsolete? - Nico Zerpa
If you have a couple of years as a developer, you've probably used either Lodash or Underscore.js. These are two libraries that provide...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ah, interesting - no problem, I’ll make that change for the next release.
On Tue, Aug 16, 2016 at 7:21 PM, Tommy notifications@github.com wrote:
Tom Moor
http://tommoor.com http://twitter.com/tommoor
Yep, but you’re using the syntax
import {throttle, each, map, compact} from 'lodash', so the entire “lodash” library is loaded, which is a bit overkill for only 4 functions used.Instead, you could use
import throttle from 'lodash/throttle', … for every function. Or use the babel plugin as I specified.