Skip to main content

What it flags

filter, some, every, find and findIndex test the result of each native array predicate immediately. A promise is truthy even if the operation later fulfills with false. Without strictNullChecks an optional promise field reads as always present, so only async function predicates are reported there.

How to review or fix

Choose how and when to await each result. For example, a sequential loop can preserve a predicate’s short-circuit behavior.