ts-reset
ts-reset copied to clipboard
Add boolean predicate
Resolves #35
No breaking changes, just making the function typing of Boolean work as a predicate.
FYI: this was merged into the TS main branch and then reverted because it can cause filter to convert any[] to unknown[] - which is not a issue for the aim of this project.
FYI: this was merged into the TS main branch and then reverted because it can cause filter to convert any[] to unknown[] - which is not a issue for the aim of this project.
Added a test, but in general, this is not touching array.filter, because it's not changing new Boolean, which is used by TS when passing array.filter(Boolean), hence this change does not interfere with the filter-boolean rule.
Closed the issue as won't implement - you can read my reasoning there #35
Closed the issue as won't implement - you can read my reasoning there #39
This loops back to the same PR. 😅
Fixed! Thanks @yacinehmito