Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using defaultsDeep causes that values for array type of parameters are merged with default values #6

Merged
merged 3 commits into from
May 22, 2018

Conversation

kasinskim
Copy link
Member

Description

Using _.defaultsDeep causes that values for array type of parameters are merged with default values which leads to invalid api behaviour.

Somewhat related to lodash/lodash#2802 (comment)

@kiebzak
Copy link
Contributor

kiebzak commented May 22, 2018

@kasinskim perfect catch. Would you mind considering const customizer = objValue => objValue?

kiebzak
kiebzak previously approved these changes May 22, 2018
kiebzak
kiebzak previously approved these changes May 22, 2018
@kiebzak kiebzak merged commit f24cee1 into master May 22, 2018
@kiebzak kiebzak deleted the FIXING_ARRAY_DEFAULTS branch May 22, 2018 15:41
@kasinskim
Copy link
Member Author

@kiebzak Sounds much simpler :) Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants