3 ms·
Lodash has published packages with their individual functions, so you can strip down to what you need (and put together your own build if you so desire). For e
by ascagnel_ 10y ago
Lodash has published packages with their individual functions, so you can strip down to what you need (and put together your own build if you so desire). For example:
https://www.npmjs.com/package/lodash.throttle https://www.npmjs.com/package/lodash.throttle
https://www.npmjs.com/package/lodash.debounce https://www.npmjs.com/package/lodash.debounce
- madeofpalk 10y agoAlternatively, if you use a modern web bundling system (like Webpack, for all its warts), you can just import the function directly import merge from `lodash/merge` merge(options, overrides) There's also the ES6 build which you can use better with a bundling system that supports tree shaking.