dot-object icon indicating copy to clipboard operation
dot-object copied to clipboard

dot.dot Nothing happens

Open jonathan-nielsen opened this issue 4 years ago • 1 comments

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.

jonathan-nielsen avatar Jun 01 '21 13:06 jonathan-nielsen

It works for me, using the same version.

TunHuang avatar Feb 09 '23 15:02 TunHuang