prefer-array-some
reports error for any .find()
calls even if it's not array's method
class Foo {
find() {
return "test"
}
}
if (new Foo().find(t => t === "t")) {
console.log("this find is reported")
}
Apologies if it was the case where it's just impossible without TypeScript type info
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