8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_.pickBy
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
In 4.17.0, _.pickBy returns unexpected results:
const _ = require('lodash'); const obj = { 'ab.c': 'foo', abc: 'bar' }; const result = _.pickBy(obj, (value, key) => key.endsWith('c')); console.log(result);
This will print out:
{ ab: { c: 'foo' }, abc: 'bar' }
It seems the change in c6ff776 now splits it by dot, which I suspect is not intended.
The text was updated successfully, but these errors were encountered:
102c5f0
Thanks for the heads up @holm!
I've patched this (102c5f0) to avoid issues with paths containing dots or brackets. I'll have a v4.17.1 patch release out sometime today.
Sorry, something went wrong.
No branches or pull requests
In 4.17.0,
_.pickBy
returns unexpected results:This will print out:
It seems the change in c6ff776 now splits it by dot, which I suspect is not intended.
The text was updated successfully, but these errors were encountered: