Actions
Bug #20041
openArray destructuring and default values in parameters
Bug #20041:
Array destructuring and default values in parameters
Description
It's possible to set the default value of a parameter to a previous parameter. For example:
However, if the parameters are destructured, the destructring happens after default parameter assignment. For example:
Is this expected behavior? I would have expected the parameters to be "evaluated" from left to right, and the array destructuring to happen before the default parameter assignment.
Thanks!
Actions