Skip to content

Comments

Fix invertByArray to treat keys as literals | issue #257#296

Open
jmm wants to merge 3 commits intosmartprocure:masterfrom
jmm:issue-257
Open

Fix invertByArray to treat keys as literals | issue #257#296
jmm wants to merge 3 commits intosmartprocure:masterfrom
jmm:issue-257

Conversation

@jmm
Copy link

@jmm jmm commented Nov 24, 2019

If I understand the intended usage correctly, this should fix #257. At any rate, the original tests pass with the change.

It seems that any path-like key is affected and it's not limited to keys with a leading ..

jmm added 3 commits November 24, 2019 13:23
Use `_.zipObject` instead of `zipObjectDeepWith` so path-like keys
aren't interpreted as paths.
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.

Potential bug in invertByArray

1 participant