Lodash isn't a tiny library so it's better not to drag it completely just for a couple of functions. foreach, isEmpty, filter, and isUndefined are easy to replace with plain JS constructs. If there is a real reason for using Lodash implementations, it would still be better to import individual functions.
Finally, what do you think about making immutable a peer dependency? We certainly never want to have a duplicate immutable, and this library doesn't make sense unless you're already using immutable, so peer looks like the right solution to avoid duplicate installations.
Lodash isn't a tiny library so it's better not to drag it completely just for a couple of functions.
foreach
,isEmpty
,filter
, andisUndefined
are easy to replace with plain JS constructs. If there is a real reason for using Lodash implementations, it would still be better to import individual functions.Finally, what do you think about making
immutable
a peer dependency? We certainly never want to have a duplicateimmutable
, and this library doesn't make sense unless you're already usingimmutable
, so peer looks like the right solution to avoid duplicate installations.