I'm reducing non-used import in my web project.
According to lodash.com, I can cherry-pick the methods I use, which is good.
ex:
var at = require('lodash/at');
But I don't know how to only import _(value).
I tried the following which doesn't work
const seq = require("lodash/seq");
Anyone can help?
Probably you can import chain method. But I'm not sure if it works properly with cherry-picking.
const chain = require('lodash/chain');
P.s. check out the interesting article Why using _.chain
is a mistake. and methods flow and flowRight
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With