Open abdavid opened 4 years ago
See #433 for context.
Describe the solution you'd like Remove usage of _.compact throughout Moleculer.
_.compact
Describe alternatives you've considered Thesis is that it would be sufficient to use filter(Boolean) E.g.
filter(Boolean)
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
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.Additional context https://github.com/moleculerjs/moleculer/search?q=_.compact&unscoped_q=_.compact