Skip to content

Values become undefined after applying crush when object keys contain dots #468

@PaulMouchel

Description

@PaulMouchel

When an object contains keys that include a dot (.), the values associated with those keys become undefined after applying the crush function.

Example:

const foo = {
  key1: '{
    key2: 'value'
  },
  'bar.baz': 'fiz',
};

cruch(foo)
// { 'key1.key2': 'value',  'bar.baz': undefined }

result should be { 'key1.key2': 'value', 'bar.baz': 'fiz'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions