Closed
Description
openedon Jun 10, 2021
🕗 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels