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

Please document what happens with a property clash #3

Open
peternann opened this issue May 10, 2018 · 1 comment
Open

Please document what happens with a property clash #3

peternann opened this issue May 10, 2018 · 1 comment

Comments

@peternann
Copy link

Quite a critical piece of info.

Seems they are over-written by the latest value in the list of objects.

@lebbe
Copy link

lebbe commented Sep 11, 2018

Something like this?

mixin({a: {aa: 'aa'}}, {a: {bb: 'bb'}}, {a: {aa: 'cc'}}, {a: {aa: 'xx'}});
{ a: { aa: 'xx', bb: 'bb' } }

The readme does mention defaults-deep, which doesn't overwrite properties, but keep the first one instead.

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

No branches or pull requests

2 participants