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

pick_by has different behaviour with lodash.pickBy #144

Closed
cnwangjie opened this issue Jul 7, 2020 · 2 comments
Closed

pick_by has different behaviour with lodash.pickBy #144

cnwangjie opened this issue Jul 7, 2020 · 2 comments

Comments

@cnwangjie
Copy link

In [1]: import pydash

In [2]: pydash.pick_by({'a': 1, 'b': 0})
Out[2]: {}

In [3]: pydash.pick_by({'a': 1, 'b': 0}, lambda i: i)
Out[3]: {'a': 1}

Expected behaviour: pydash.pick_by({'a': 1, 'b': 0}) will return {'a': 1}

Actual behaviour: return {}

Following is the behaviour in Lodash

> _.pickBy({a: 1, b: 0})
< {a: 1}
@slallum
Copy link
Contributor

slallum commented Jul 7, 2020

duplicate of #129, closed by #139 :)

@cnwangjie
Copy link
Author

Thanks

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