this rule is not reported when optional chaining
unicorn/no-array-callback-reference
function isString(arg) {
return typeof arg === 'string';
}
const obj = { a: [], b: [] };
obj.a.filter(isString);
obj.b?.filter(isString);
only the first filter report an error.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too