Skip to content

Lodash 4.17.0 _.pick breaks when there are dots in keys #2809

@jvah

Description

@jvah

With lodash 4.16.6:

> _.pick({'foo.txt': 'foo', 'bar.txt': 'bar', 'baz.txt': 'baz'}, ['foo.txt', 'baz.txt'])
{ 'foo.txt': 'foo', 'baz.txt': 'baz' }

With lodash 4.17.0:

> _.pick({'foo.txt': 'foo', 'bar.txt': 'bar', 'baz.txt': 'baz'}, ['foo.txt', 'baz.txt'])
{ foo: { txt: 'foo' }, baz: { txt: 'baz' } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions