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
Thank you friend.
Do you know if, by adding this line in my project, I might encounter problems? isArray(arg: any): arg is readonly any[];
I have tested it on 3 or 4 scenarios without any issues and it fix my issue, but I assume that if this issue has been running for more than ~8years, it might because it will break the entire ts somewhere? Playground
However, when I add this line to the Array constructor, the issue is resolved, but I have a slight doubt. Indeed, if a team hasn't added this change, it maybe because it can inevitably lead to more serious issues?
I've learned to be cautious when everything seems too simple to be true.
🔎 Search Terms
Array.isArray( )
🕗 Version & Regression Information
⏯ Playground Link
Playground
💻 Code
🙁 Actual behavior
type became

any[]
🙂 Expected behavior
support readonly array when do a
Array.isArray()
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: