Closed mollthecoder closed 2 months ago
Would that change be only spec conform or really useful? I think many/some calls with variables with undefined are bugs/unintentional.
This should go https://github.com/microsoft/TypeScript as the code resides there.
This is the intended behavior.
Take the following example:
This is safe, because
undefined
is automatically converted to zero. It is equivalent to this:Or this:
However, it is currently marked as a required argument.