Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

In lodash 4.17, _.pick does not work correctly unless the paths option is set. #91

Closed
michelle opened this issue Jan 4, 2017 · 0 comments
Labels

Comments

@michelle
Copy link
Contributor

michelle commented Jan 4, 2017

It looks like _.pick now depends on _.set, even for shallow paths.

With paths set:

> _.pick({abcd: 1}, ['abcd']);
Object {abcd: 1}

Without:

> _.pick({abcd: 1}, ['abcd']);
Object {a: {b: {c: {d: 1}}}}
@jdalton jdalton added the bug label Jan 5, 2017
@jdalton jdalton closed this as completed in d556335 Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants