-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Currently, defaults are merged with provided arguments using following approach
const argsWithDefaults = Object.assign({}, defaults, args);
This works well when the argument is not provided, as the default value will end in the resulting object. However, providing argument with the undefined value removes default from the resulting object.
The described behavior is not intended, and the default value should end up in the resulting object in both cases.
To fix this behavior, a helper must be implemented to ensure defaults are ending in the resulting object when argument is omitted or its value is set to undefined.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working