eslint-plugin-lodash
eslint-plugin-lodash copied to clipboard
prefer-compact: false positive for objects.
prefer-compact gives false-positives for objects. _.filter allows collections (both arrays and objects), while _.compact only arrays...
by the way, how is _.compact(arr) better than _.filter(collection)? They both do the same, and _.filter allows for both arrays and objects...