Closed
Description
🕗 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).
foo?.call()
🙁 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.
Metadata
Metadata
Assignees
Labels
No labels