const array: boolean[] = [true, false, true];
// Implicit
array.some(x => x);
// Explicit
array.some(x => Boolean(x));
Both of the .some()
calls should be replaced with
array.includes(true);
but the rule doesn't detect that, only array.some(x => x === true)
is detected.
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