Skip to content

dot.dot Nothing happens #69

@jonathan-nielsen

Description

@jonathan-nielsen

I'm trying to convert an object to dot notation with dot.dot by running

const target = dot.dot({
  a: 1,
  b: 2,
  c: {
    d: 3,
    e: {
      f: 4,
    },
  },
})

Expected result

{
  a: 1,
  b: 2,
  'c.d': 3,
  'c.e.f': 4,
}

But when i'm logging target it always result in the default object, nothing happens.

I'm using version 2.1.4.

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