moleculer
moleculer copied to clipboard
[lodash] Remove usage of _.compact
See #433 for context.
Describe the solution you'd like
Remove usage of _.compact
throughout Moleculer.
Describe alternatives you've considered
Thesis is that it would be sufficient to use filter(Boolean)
E.g.
const filteredList = [true, false, 0, NaN, undefined, "", null].filter(Boolean);
// [ true ]
Additional context https://github.com/moleculerjs/moleculer/search?q=.compact&unscoped_q=.compact
https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_compact