You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the record: proposals to re-type the parameter to any (in lieu of #14520) have been outright rejected in the past on the grounds that it should be an error if, e.g., you check whether string[] contains a number.
For the record: proposals to re-type the parameter to any (in lieu of #14520) have been outright rejected in the past on the grounds that it should be an error if, e.g., you check whether string[] contains a number.
But it feels a bit inflexible. When I use [null, undefined]. includes (value) to detect whether an external source's value is null and undefined, a prompt will appear. shouldn't the judgment of includes be more flexible
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Argument of type 'string' is not assignable to parameter of type 'number'.
🙂 Expected behavior
I think includes should accept any type, after all it is a judgment function
The text was updated successfully, but these errors were encountered: