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
TS did not show that .pop() did not exist in the new variable. The new variable type has "all the properties" from the array, including the prototype functions. I guess that's why it failed to show that the function doesn't exist.
Example of the code failing:
🙂 Expected behavior
It should show values from the Object prototype and not from Array.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
Spread, Spreading, Array, Object, Destruct, Destructuring
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
TS did not show that
.pop()
did not exist in the new variable. The new variable type has "all the properties" from the array, including the prototype functions. I guess that's why it failed to show that the function doesn't exist.Example of the code failing:
🙂 Expected behavior
It should show values from the Object prototype and not from Array.
The text was updated successfully, but these errors were encountered: