When using methods that select according to a set of conditions with 'some' and 'every' behavior, it's possible to pass an iteratee created by overSome and overEvery
This rule takes no arguments
The following patterns are considered warnings:
var t = _.filter(a, function(x) { return f(x) && g(x); })
'var t = _.filter(a, x => f(x) || g(x) || h(x))'
The following patterns are not considered warnings:
var t = _.filter(a, _.overSome([f, g, h]);
If you do not want to enforce using _.overSome
and _.overEvery
, do not use this rule.