We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like _.assignIn doesn't work as it's documented.
When I try to pass multiple sources like _.extend({a:1}, [{c:3}, {a: 2, c:1}]) the output is
_.extend({a:1}, [{c:3}, {a: 2, c:1}])
{ "0": { "c": 3 }, "1": { "a": 2, "c": 1 }, "a": 1 }
but should be
{ a: 2, c: 1 }
Looks like a bug for me. Probably the same issue is happening with some other similar functions like _.defaults, _.merge
Tested in http://dexters-lab.io/ with lodash versions 4.17.4 and with 4.17.11
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi @MikeYermolayev!
I think you're looking for _.assignInAll.
_.assignInAll
Sorry, something went wrong.
@jdalton thanks for you answer but docs https://gist.github.com/jfmengels/6b973b69c491375117dc#_assigninobject-sources look incorrect then. Shouldn’t it be corrected? Or it’s not the source of truth?
That gist is incorrect. Check out our FP Guide.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Looks like _.assignIn doesn't work as it's documented.
When I try to pass multiple sources like
_.extend({a:1}, [{c:3}, {a: 2, c:1}])
the output isbut should be
Looks like a bug for me. Probably the same issue is happening with some other similar functions like _.defaults, _.merge
Tested in http://dexters-lab.io/ with lodash versions 4.17.4 and with 4.17.11
Thanks in advance
The text was updated successfully, but these errors were encountered: