moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

[lodash] Remove usage of _.compact

Open abdavid opened this issue 4 years ago • 1 comments

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

abdavid avatar May 22 '20 19:05 abdavid

https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_compact

abdavid avatar May 22 '20 19:05 abdavid