2023-09-05 17:53:07

Also, and f*** this:

You can optional-call an undefined function:

let undefinedFunc
undefinedFunc?.()

is fine.

But you can’t optional-call an undeclared one:

undeclaredFunc?.()
-> “undeclaredFunc is not defined”

Even though:

typeof undefinedFunc
-> “undefined”

typeof undeclaredFunc
-> “undefined”

🤬