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
I didn't know that. This is indeed much better as you don't loose IntelliSense that way. Thanks. But this is a Bug anyway (also not very important tbh) :-)
It's not explicitly mentioned, but #27028 seems to me more like it's a design decision, not a bug. Calling .call() without a thisArg rarely makes sense, and in these few cases you can just pass undefined along.
🕗 Version & Regression Information
Occurs in the latest Version (4.3.2) and nightly version
💻 Code
Function.prototype.call combined with Optional Chaining is a nice way to only call a method if the method is defined (see this thread).
🙁 Actual behavior
Ts complains:
Expected at least 1 arguments, but got 0
🙂 Expected behavior
I expect that this works as the first argument is actually optional according to Mozilla and own observations.
The text was updated successfully, but these errors were encountered: